Skip to content

6ec5d550 4475 7cf0 89a7 c70cbbc86ebe

Axel Kesseler edited this page Mar 1, 2023 · 18 revisions

EmptyLogger(TContext).Write Method (LogLevel, String, Exception, ValueTuple(String, Object)[])

This method writes the message as well as the exception into the logging target using provided logging level.

Namespace: Plexdata.LogWriter.Logging
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

public void Write(
	LogLevel level,
	string message,
	Exception exception,
	params (string , Object )[] details
)

Parameters

 

level
Type: Plexdata.LogWriter.Definitions.LogLevel
The logging level to be used to tag the written logging data.
message
Type: System.String
The message to be written.
exception
Type: System.Exception
The exception to be written.
details
Type: System.ValueTuple(String, Object)[]
An optional list of label-value-pair combinations containing additional information.

Implements

ILogger.Write(LogLevel, String, Exception, ValueTuple(String, Object)[])

Remarks

This method performs the actual writing of logging data into the logging target using a particular logging level. Be aware, nothing will happen if message is null, empty or consists only of whitespaces and if exception is null.

On the other hand, if the message is invalid but the exception is valid then the message text is taken from the exception instead.

See Also

Reference

EmptyLogger(TContext) Class
Write Overload
Plexdata.LogWriter.Logging Namespace

Clone this wiki locally