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()
Namespace: Aurigma.DesignAtoms.ExtensionMethods
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class LoggerExtensionMethods
Methods
DebugExt(ILogger, String, String, String)
Declaration
public static void DebugExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |
ErrorExt(ILogger, Exception, String, String, String)
Declaration
public static void ErrorExt(this ILogger logger, Exception exception, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.Exception | exception | |
System.String | message | |
System.String | className | |
System.String | methodName |
ErrorExt(ILogger, String, String, String)
Declaration
public static void ErrorExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |
FatalExt(ILogger, String, String, String)
Declaration
public static void FatalExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |
InfoExt(ILogger, String, String, String)
Declaration
public static void InfoExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |
LogExt(ILogger, LogLevel, String, String, String, Exception)
Declaration
public static void LogExt(this ILogger logger, LogLevel logLevel, string message, string className = null, string methodName = null, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
NLog.LogLevel | logLevel | |
System.String | message | |
System.String | className | |
System.String | methodName | |
System.Exception | exception |
TraceExt(ILogger, String, String, String)
Declaration
public static void TraceExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |
WarnExt(ILogger, String, String, String)
Declaration
public static void WarnExt(this ILogger logger, string message, string className = null, string methodName = null)
Parameters
Type | Name | Description |
---|---|---|
NLog.ILogger | logger | |
System.String | message | |
System.String | className | |
System.String | methodName |