Class SerilogAdapter
Inheritance
System.Object
SerilogAdapter
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()
Assembly: TcOpen.Inxton.Logging.dll
Syntax
public class SerilogAdapter : ILogger
Constructors
|
Improve this Doc
View Source
SerilogAdapter(LogEventLevel)
Creates new instance of Serilog logger with default configuration:
Write logs to Console (ConsoleSink)
Declaration
public SerilogAdapter(LogEventLevel minLevel = LogEventLevel.Information)
Parameters
Type |
Name |
Description |
Serilog.Events.LogEventLevel |
minLevel |
|
|
Improve this Doc
View Source
SerilogAdapter(LoggerConfiguration)
Creates new instance of Serilog logger.
Declaration
public SerilogAdapter(LoggerConfiguration configuration)
Parameters
Type |
Name |
Description |
Serilog.LoggerConfiguration |
configuration |
Serilog logger configuration
|
Fields
|
Improve this Doc
View Source
_logger
Declaration
Field Value
Type |
Description |
Serilog.ILogger |
|
Methods
|
Improve this Doc
View Source
Debug<T>(String, T)
Declaration
public void Debug<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
|
Improve this Doc
View Source
Error<T>(String, T)
Declaration
public void Error<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
|
Improve this Doc
View Source
Fatal<T>(String, T)
Declaration
public void Fatal<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public void Information<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
|
Improve this Doc
View Source
Verbose<T>(String, T)
Declaration
public void Verbose<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
|
Improve this Doc
View Source
Warning<T>(String, T)
Declaration
public void Warning<T>(string stringTemplate, T payload = null)
Parameters
Type |
Name |
Description |
System.String |
stringTemplate |
|
T |
payload |
|
Type Parameters
Implements