-
Notifications
You must be signed in to change notification settings - Fork 0
bedbb1e0 66e2 a6ce 7b91 0945b22f8767
Axel Kesseler edited this page Mar 1, 2023
·
14 revisions
This method writes a logging message.
Namespace: Plexdata.LogWriter.Logging
Assembly: Plexdata.LogWriter.Persistent (in Plexdata.LogWriter.Persistent.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.
PersistentLoggerBase Class
Plexdata.LogWriter.Logging Namespace
LoggerBase(TSettings).IsDisabled
LoggerBase(TSettings).IsEnabled(LogLevel)
LoggerBase(TSettings).CreateOutput(LogLevel, String, String, String, Exception, ValueTuple(String, Object)[])