C# Class Serilog.Debugging.SelfLog

A simple source of information generated by Serilog itself, for example when exceptions are thrown and caught internally.
Mostra file Open project: serilog/serilog

Private Properties

Property Type Description

Public Methods

Method Description
Disable ( ) : void

Clear the output mechanism and disable self-log events.

Enable ( Action output ) : void

Set the output mechanism for self-log messages.

Enable ( TextWriter output ) : void

Set the output mechanism for self-log messages.

WriteLine ( string format, object arg0 = null, object arg1 = null, object arg2 = null ) : void

Write a message to the self-log.

The name is historical; because this is used from third-party sink packages, removing the "Line" suffix as would seem sensible isn't worth the breakage.

Method Details

Disable() public static method

Clear the output mechanism and disable self-log events.
public static Disable ( ) : void
return void

Enable() public static method

Set the output mechanism for self-log messages.
public static Enable ( Action output ) : void
output Action An action to invoke with self-log messages.
return void

Enable() public static method

Set the output mechanism for self-log messages.
public static Enable ( TextWriter output ) : void
output System.IO.TextWriter A synchronized to which /// self-log messages will be written.
return void

WriteLine() public static method

Write a message to the self-log.
The name is historical; because this is used from third-party sink packages, removing the "Line" suffix as would seem sensible isn't worth the breakage.
public static WriteLine ( string format, object arg0 = null, object arg1 = null, object arg2 = null ) : void
format string Standard .NET format string containing the message.
arg0 object First argument, if supplied.
arg1 object Second argument, if supplied.
arg2 object Third argument, if supplied.
return void