Aspectacular.MethodCallLoggingExtensions.Log C# (CSharp) Method

Log() public static method

Adds log entry to AOP Proxy log in a way that makes it possible for aspect classes to access it for storing, sorting, grouping, etc.
public static Log ( this methodLogger, EntryType entryType, string category, string format ) : void
methodLogger this
entryType EntryType
category string
format string
return void
        public static void Log(this IMethodLogProvider methodLogger, EntryType entryType, string category, string format, params object[] args)
        {
            if(methodLogger == null)
            {
                if(CallLifetimeLog.FallbackToTraceLoggingWhenNoProxy)
                    FallbackTraceLog(entryType, format, args);

                return;
            }

            CallLifetimeLog log = (CallLifetimeLog)methodLogger;
            log.AddLogEntry(LogEntryOriginator.Method, entryType, category, format, args);
        }