-
Notifications
You must be signed in to change notification settings - Fork 0
8676e56f 4a2e d7ad cbea 34074fc5c6c1
Axel Kesseler edited this page Mar 1, 2023
·
6 revisions
CompositeLogger(TContext).Write Method (LogLevel, String, String, String, Exception, ValueTuple(String, Object)[])
This method writes a logging message.
Namespace: Plexdata.LogWriter.Logging
Assembly: Plexdata.LogWriter.Composite (in Plexdata.LogWriter.Composite.dll) Version: 1.0.7.1
C#
protected override void Write(
LogLevel level,
string context,
string scope,
string message,
Exception exception,
params (string , Object )[] details
)
- level
- Type: Plexdata.LogWriter.Definitions.LogLevel
The logging level of the message to write. - context
- Type: System.String
The logging context of the message to write. - scope
- Type: System.String
The logging scope of the message to write. - message
- Type: System.String
The real logging message of the message to write. - exception
- Type: System.Exception
The exception to be included in the logging message. - details
- Type: System.ValueTuple(String, Object)[]
The list of label-value-pairs to be included in the logging message.
The logging message to write depends of current logger settings.
Nothing is gonna happen if logging is disabled, or if provided logging level is below configured logging level, or if the complete logging message is empty.
CompositeLogger(TContext) Class
Write Overload
Plexdata.LogWriter.Logging Namespace
LoggerBase(TSettings).IsDisabled
LoggerBase(TSettings).IsEnabled(LogLevel)
LoggerBase(TSettings).CreateOutput(LogLevel, String, String, String, Exception, ValueTuple(String, Object)[])