/// <summary> /// 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. /// </summary> /// <param name="methodLogger"></param> /// <param name="entryType"></param> /// <param name="category"></param> /// <param name="format"></param> /// <param name="args"></param> 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); }
internal CallerAopLogger(CallLifetimeLog log) { this.log = log; }