SimpleLogger.SimpleLog.Log C# (CSharp) Method

Log() public static method

Write exception to log
public static Log ( Exception ex, bool useBackgroundTask = true, int framesToSkip ) : Exception
ex System.Exception The exception to write to the log
useBackgroundTask bool Whether to use the background task (thread) to write messages to disk. Default is true. This is much faster than writing directly to disk in the main thread.
framesToSkip int How many frames to skip when detecting the calling method, . This is useful when log calls to are wrapped in an application. Default is 0.
return System.Exception
        public static Exception Log(Exception ex, bool useBackgroundTask = true, int framesToSkip = 0)
        {
            return ex == null ? null : Log(GetExceptionXElement(ex), Severity.Exception, useBackgroundTask, framesToSkip);
        }

Same methods

SimpleLog::Log ( System.Xml.Linq.XElement xElement, Severity severity = Severity.Info, bool useBackgroundTask = true, int framesToSkip ) : Exception
SimpleLog::Log ( string message, Severity severity = Severity.Info, bool useBackgroundTask = true, int framesToSkip ) : Exception