26.251. Class LoggerInit
Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll
Initializes and configures logging for the application using Serilog.
public class LoggerInit
26.251.1. Inheritance
26.251.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.251.3. Constructors
26.251.3.1. LoggerInit(IConfiguration)
Initializes a new instance of the
public LoggerInit(IConfiguration configuration)
26.251.3.1.1. Parameters
configuration IConfiguration
The configuration object used to set up Serilog.
26.251.4. Methods
26.251.4.1. Configure(ILoggingBuilder)
Configures the logging builder to use the Serilog logger.
public void Configure(ILoggingBuilder loggingBuilder)
26.251.4.1.1. Parameters
loggingBuilder ILoggingBuilder
The logging builder to configure.
26.251.4.2. GetLogger()
Gets the Microsoft.Extensions.Logging logger instance.
public ILogger GetLogger()
26.251.4.2.1. Returns
The
26.251.4.3. GetSerilogConf()
Gets the Serilog logger configuration instance.
public Logger GetSerilogConf()
26.251.4.3.1. Returns
Logger
The Serilog