public static LoggingManager LogMySynchPerformance() { LoggingManager result; result = new LoggingManager() { _CallerDetails = GetCallerDetails().ToString(), Log = MySynchPerformanceLog }; MySynchPerformanceLog.Info(() => string.Format("{0} - Started", result._CallerDetails)); return result; }
public static LoggingManager LogMySynchPerformance(object info) { LoggingManager result; result = new LoggingManager() { _CallerDetails = GetCallerDetails().ToString(), _performanceExtraInfo = info, Log = MySynchPerformanceLog }; MySynchPerformanceLog.Info(() => string.Format("{0} ({1})- Started", result._CallerDetails, result._performanceExtraInfo)); return result; }