public object Invoke(IMethodInvocation invocation)
{
ILoggeable target = invocation.This as ILoggeable;
if (target != null && invocation.Method.DeclaringType != typeof(ILoggeable))
{
target.Log("Invoking " + invocation.Method.Name);
}
return invocation.Proceed();
}
}