Aspects.Logging.LogAttribute.OnSuccess C# (CSharp) Method

OnSuccess() public method

Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.).
args
public OnSuccess ( MethodExecutionArgs args ) : void
args MethodExecutionArgs Event arguments specifying which method /// is being executed and which are its arguments.
return void
        public override void OnSuccess(MethodExecutionArgs args)
        {
            if (args == null) throw new ArgumentNullException("args");

            if (!_shouldLog)
                return;

            LoggingInfo info = GetLoggingInfo();

            string message = MessageFormatter.FormatMessage(Output, args, "Success", info);

            Logger.Debug(message);
        }