21.256. Class LoggerInit
Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll
Initializes and configures logging for the application using Serilog.
public class LoggerInit
21.256.1. Inheritance
21.256.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.256.3. Constructors
21.256.3.1. LoggerInit(IConfiguration)
Initializes a new instance of the
public LoggerInit(IConfiguration configuration)
21.256.3.1.1. Parameters
configuration IConfiguration
The configuration object used to set up Serilog.
21.256.4. Methods
21.256.4.1. Configure(ILoggingBuilder)
Configures the logging builder to use the Serilog logger.
public void Configure(ILoggingBuilder loggingBuilder)
21.256.4.1.1. Parameters
loggingBuilder ILoggingBuilder
The logging builder to configure.
21.256.4.2. GetLogger()
Gets the Microsoft.Extensions.Logging logger instance.
public ILogger GetLogger()
21.256.4.2.1. Returns
The
21.256.4.3. GetSerilogConf()
Gets the Serilog logger configuration instance.
public Logger GetSerilogConf()
21.256.4.3.1. Returns
Logger
The Serilog