Skip to content

f0078978 4021 e192 dba2 ac6eb989a4b8

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

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

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

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

Syntax

C#

public void Write(
	LogLevel level,
	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.
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, 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 exception is null.

See Also

Reference

ConsoleLogger(TContext) Class
Write Overload
Plexdata.LogWriter.Logging.Standard Namespace

Clone this wiki locally