Class SerilogManager
The Serilog log manager.
Inheritance
System.Object
SerilogManager
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Logging.Serilog
Assembly: Kephas.Logging.Serilog.dll
Syntax
public class SerilogManager : ILogManager
Constructors
| Improve this Doc View SourceSerilogManager(LoggerConfiguration)
Initializes a new instance of the SerilogManager class.
Declaration
public SerilogManager(LoggerConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Serilog.LoggerConfiguration | configuration | The configuration. |
Methods
| Improve this Doc View SourceCreateLogger(String)
Creates the logger.
Declaration
protected virtual ILogger CreateLogger(string loggerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | loggerName | Name of the logger. |
Returns
Type | Description |
---|---|
ILogger | A logger with the provided name. |
GetLogger(String)
Gets the logger with the provided name.
Declaration
public ILogger GetLogger(string loggerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | loggerName | Name of the logger. |
Returns
Type | Description |
---|---|
ILogger | A logger for the provided name. |