C# Класс Serilog.Debugging.SelfLog

A simple source of information generated by Serilog itself, for example when exceptions are thrown and caught internally.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

Disable() публичный статический Метод

Clear the output mechanism and disable self-log events.
public static Disable ( ) : void
Результат void

Enable() публичный статический Метод

Set the output mechanism for self-log messages.
public static Enable ( Action output ) : void
output Action An action to invoke with self-log messages.
Результат void

Enable() публичный статический Метод

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.
Результат void

WriteLine() публичный статический Метод

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.
Результат void