22.252. Class LoggerInit
Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll
Initializes and configures logging for the application using Serilog.
public class LoggerInit
22.252.1. Inheritance
22.252.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
22.252.3. Constructors
22.252.3.1. LoggerInit(IConfiguration)
Initializes a new instance of the
public LoggerInit(IConfiguration configuration)
22.252.3.1.1. Parameters
configuration IConfiguration
The configuration object used to set up Serilog.
22.252.4. Methods
22.252.4.1. Configure(ILoggingBuilder)
Configures the logging builder to use the Serilog logger.
public void Configure(ILoggingBuilder loggingBuilder)
22.252.4.1.1. Parameters
loggingBuilder ILoggingBuilder
The logging builder to configure.
22.252.4.2. GetLogger()
Gets the Microsoft.Extensions.Logging logger instance.
public ILogger GetLogger()
22.252.4.2.1. Returns
The
22.252.4.3. GetSerilogConf()
Gets the Serilog logger configuration instance.
public Logger GetSerilogConf()
22.252.4.3.1. Returns
Logger
The Serilog