Skip to content

442dd8ca 2e1c 2228 3b53 b013ea5e877a

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

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

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

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

Syntax

C#

public void Write(
	LogLevel level,
	string message,
	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.
details
Type: System.ValueTuple(String, Object)[]
An optional list of label-value-pair combinations containing additional information.

Implements

ILogger.Write(LogLevel, String, 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.

See Also

Reference

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

Clone this wiki locally