C# 클래스 Serilog.Debugging.SelfLog

A simple source of information generated by Serilog itself, for example when exceptions are thrown and caught internally.
파일 보기 프로젝트 열기: serilog/serilog

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