Example #1
0
 private static string GetCallLogInfo(MethodInvocationContext invocationContext)
 {
     var logBuilder = new MethodCallLogBuilder(invocationContext);
     logBuilder.AddMethodCall();
     if (LoggingConfiguration.LoggingOutputOptions.LogParameterValues)
     {
         logBuilder.AddParameters();
     }
     return logBuilder.GetLogOutput();
 }
Example #2
0
        private static string GetPostCallLog(MethodInvocationContext invocationContext)
        {
            var logBuilder = new MethodCallLogBuilder(invocationContext);
            logBuilder.AddMethodCall();
            logBuilder.AddMethodExecutionTime();
            if (LoggingConfiguration.LoggingOutputOptions.LogReturnValue)
            {
                logBuilder.AddReturnValue();
            }

            return logBuilder.GetLogOutput();
        }