C# 클래스 SipSharp.Logging.ConsoleLogger

This class writes to the console.
It colors the output depending on the log level and includes a 3-level stack trace (in debug mode)
상속: ILogger
파일 보기 프로젝트 열기: jgauffin/SipSharp

공개 메소드들

메소드 설명
ConsoleLogger ( Type loggingType, ILogFilter filter ) : System

Initializes a new instance of the ConsoleLogger class.

Debug ( string message ) : void

Write an entry that helps when debugging code.

Debug ( string message, Exception err ) : void

Write an entry that helps when debugging code.

Error ( string message ) : void

Something went wrong, but the application do not need to die. The current thread/request cannot continue as expected.

Error ( string message, Exception err ) : void

Something went wrong, but the application do not need to die. The current thread/request cannot continue as expected.

Fatal ( string message ) : void

Something went very wrong, application might not recover.

Fatal ( string message, Exception err ) : void

Something went very wrong, application might not recover.

GetColor ( LogLevel level ) : ConsoleColor

Get color for the specified log level

Info ( string message ) : void

Informational message, needed when helping customer to find a problem.

Info ( string message, Exception err ) : void

Informational message, needed when helping customer to find a problem.

Trace ( string message ) : void

Write a entry needed when following through code during hard to find bugs.

Trace ( string message, Exception err ) : void

Write a entry needed when following through code during hard to find bugs.

Warning ( string message ) : void

Something is not as we expect, but the code can continue to run without any changes.

Warning ( string message, Exception err ) : void

Something is not as we expect, but the code can continue to run without any changes.

Write ( LogLevel level, string message ) : void

Write an entry

Write ( LogLevel level, string message, Exception exception ) : void

Write an entry

메소드 상세

ConsoleLogger() 공개 메소드

Initializes a new instance of the ConsoleLogger class.
public ConsoleLogger ( Type loggingType, ILogFilter filter ) : System
loggingType System.Type Type being logged.
filter ILogFilter Filter used to decide which entries to log.
리턴 System

Debug() 공개 메소드

Write an entry that helps when debugging code.
public Debug ( string message ) : void
message string Log message
리턴 void

Debug() 공개 메소드

Write an entry that helps when debugging code.
public Debug ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

Error() 공개 메소드

Something went wrong, but the application do not need to die. The current thread/request cannot continue as expected.
public Error ( string message ) : void
message string Log message
리턴 void

Error() 공개 메소드

Something went wrong, but the application do not need to die. The current thread/request cannot continue as expected.
public Error ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

Fatal() 공개 메소드

Something went very wrong, application might not recover.
public Fatal ( string message ) : void
message string Log message
리턴 void

Fatal() 공개 메소드

Something went very wrong, application might not recover.
public Fatal ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

GetColor() 공개 정적인 메소드

Get color for the specified log level
public static GetColor ( LogLevel level ) : ConsoleColor
level LogLevel Level for the log entry
리턴 ConsoleColor

Info() 공개 메소드

Informational message, needed when helping customer to find a problem.
public Info ( string message ) : void
message string Log message
리턴 void

Info() 공개 메소드

Informational message, needed when helping customer to find a problem.
public Info ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

Trace() 공개 메소드

Write a entry needed when following through code during hard to find bugs.
public Trace ( string message ) : void
message string Log message
리턴 void

Trace() 공개 메소드

Write a entry needed when following through code during hard to find bugs.
public Trace ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

Warning() 공개 메소드

Something is not as we expect, but the code can continue to run without any changes.
public Warning ( string message ) : void
message string Log message
리턴 void

Warning() 공개 메소드

Something is not as we expect, but the code can continue to run without any changes.
public Warning ( string message, Exception err ) : void
message string Log message
err System.Exception Exception being logged.
리턴 void

Write() 공개 메소드

Write an entry
public Write ( LogLevel level, string message ) : void
level LogLevel Importance of the log message
message string The message.
리턴 void

Write() 공개 메소드

Write an entry
public Write ( LogLevel level, string message, Exception exception ) : void
level LogLevel Importance of the log message
message string The message.
exception System.Exception
리턴 void