Skip to main content

Class LoggerExtensionMethods

Namespace: Aurigma.DesignAtoms.ExtensionMethods
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class LoggerExtensionMethods

Inheritance: System.Object -> LoggerExtensionMethods

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Methods

TraceExt

public static void TraceExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

DebugExt

public static void DebugExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

InfoExt

public static void InfoExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

WarnExt

public static void WarnExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

WarnExt

public static void WarnExt(this ILogger logger, Exception exception, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Exceptionexception
System.Stringmessage
System.StringclassName
System.StringmethodName

ErrorExt

public static void ErrorExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

ErrorExt

public static void ErrorExt(this ILogger logger, Exception exception, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Exceptionexception
System.Stringmessage
System.StringclassName
System.StringmethodName

FatalExt

public static void FatalExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
System.Stringmessage
System.StringclassName
System.StringmethodName

LogExt

public static void LogExt(this ILogger logger, LogLevel logLevel, string message, string className = null, string methodName = null, Exception exception = null)
Parameters
TypeNameDescription
NLog.ILoggerlogger
NLog.LogLevellogLevel
System.Stringmessage
System.StringclassName
System.StringmethodName
System.Exceptionexception
Was this page helpful?