Class LoggerExtensionMethods
Namespace: Aurigma.DesignAtoms.ExtensionMethods
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class LoggerExtensionMethods
Inheritance: System.Object -> LoggerExtensionMethods
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
TraceExt
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 |
DebugExt
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 |
InfoExt
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 |
WarnExt
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 |
WarnExt
public static void WarnExt(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
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 |
ErrorExt
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 |
FatalExt
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 |
LogExt
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 |