-
Notifications
You must be signed in to change notification settings - Fork 0
329c08b1 9d65 4ac2 5def 3376684ff841
Axel Kesseler edited this page Mar 1, 2023
·
15 revisions
This method writes the message as well as the exception 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
C#
public void Write(
LogLevel level,
string message,
Exception exception
)
- 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.
ILogger.Write(LogLevel, String, Exception)
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.
ConsoleLogger Class
Write Overload
Plexdata.LogWriter.Logging.Windows Namespace