Class LogExtensions
Inheritance
System.Object
LogExtensions
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
public static class LogExtensions
Methods
|
Improve this Doc
View Source
Error(ILogger, Exception)
Declaration
public static void Error(this ILogger logger, Exception exception)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
logger |
|
System.Exception |
exception |
|
|
Improve this Doc
View Source
ForContext(ILogger, String)
Declaration
public static ILogger ForContext(this ILogger logger, string sourceContext)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
logger |
|
System.String |
sourceContext |
|
Returns
Type |
Description |
Serilog.ILogger |
|
|
Improve this Doc
View Source
Info(ILogger, Exception, String)
Declaration
public static void Info(this ILogger log, Exception exception, string messageTemplate)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
|
Improve this Doc
View Source
Info(ILogger, Exception, String, Object[])
Declaration
public static void Info(this ILogger log, Exception exception, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
|
Improve this Doc
View Source
Info(ILogger, String)
Declaration
public static void Info(this ILogger log, string messageTemplate)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
|
Improve this Doc
View Source
Info(ILogger, String, Object[])
Declaration
public static void Info(this ILogger log, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
|
Improve this Doc
View Source
Info<T>(ILogger, Exception, String, T)
Declaration
public static void Info<T>(this ILogger log, Exception exception, string messageTemplate, T propertyValue)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T |
propertyValue |
|
Type Parameters
|
Improve this Doc
View Source
Info<T>(ILogger, String, T)
Declaration
public static void Info<T>(this ILogger log, string messageTemplate, T propertyValue)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T |
propertyValue |
|
Type Parameters
|
Improve this Doc
View Source
Info<T0, T1>(ILogger, Exception, String, T0, T1)
Declaration
public static void Info<T0, T1>(this ILogger log, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
|
Improve this Doc
View Source
Info<T0, T1>(ILogger, String, T0, T1)
Declaration
public static void Info<T0, T1>(this ILogger log, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
|
Improve this Doc
View Source
Info<T0, T1, T2>(ILogger, Exception, String, T0, T1, T2)
Declaration
public static void Info<T0, T1, T2>(this ILogger log, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
|
Improve this Doc
View Source
Info<T0, T1, T2>(ILogger, String, T0, T1, T2)
Declaration
public static void Info<T0, T1, T2>(this ILogger log, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
|
Improve this Doc
View Source
Warn(ILogger, Exception, String)
Declaration
public static void Warn(this ILogger log, Exception exception, string messageTemplate)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
|
Improve this Doc
View Source
Warn(ILogger, Exception, String, Object[])
Declaration
public static void Warn(this ILogger log, Exception exception, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
|
Improve this Doc
View Source
Warn(ILogger, String)
Declaration
public static void Warn(this ILogger log, string messageTemplate)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
|
Improve this Doc
View Source
Warn(ILogger, String, Object[])
Declaration
public static void Warn(this ILogger log, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
|
Improve this Doc
View Source
Warn<T>(ILogger, Exception, String, T)
Declaration
public static void Warn<T>(this ILogger log, Exception exception, string messageTemplate, T propertyValue)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T |
propertyValue |
|
Type Parameters
|
Improve this Doc
View Source
Warn<T>(ILogger, String, T)
Declaration
public static void Warn<T>(this ILogger log, string messageTemplate, T propertyValue)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T |
propertyValue |
|
Type Parameters
|
Improve this Doc
View Source
Warn<T0, T1>(ILogger, Exception, String, T0, T1)
Declaration
public static void Warn<T0, T1>(this ILogger log, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
|
Improve this Doc
View Source
Warn<T0, T1>(ILogger, String, T0, T1)
Declaration
public static void Warn<T0, T1>(this ILogger log, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
|
Improve this Doc
View Source
Warn<T0, T1, T2>(ILogger, Exception, String, T0, T1, T2)
Declaration
public static void Warn<T0, T1, T2>(this ILogger log, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
|
Improve this Doc
View Source
Warn<T0, T1, T2>(ILogger, String, T0, T1, T2)
Declaration
public static void Warn<T0, T1, T2>(this ILogger log, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
Serilog.ILogger |
log |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|