C# 클래스 Mycroft.Logger

Log messages to log files by default logs are in the log folder, and labeled by day. Log messages are automatically time stamped
파일 보기 프로젝트 열기: rit-sse-mycroft/core

공개 프로퍼티들

프로퍼티 타입 설명
WriteLock object

공개 메소드들

메소드 설명
Close ( ) : bool

Close the underlying connection write stream.

Debug ( string message ) : bool

Log a debug-level message

Error ( string message ) : bool

Log an error-level message

GetInstance ( ) : Logger
Info ( string message ) : bool

Log an info-level message

WTF ( string message ) : bool

Log a WTF-level message

Warning ( string message ) : bool

Log a warning-level message

비공개 메소드들

메소드 설명
CheckFile ( ) : void

Checks file to confirm correct log file.

GetColor ( Level level ) : ConsoleColor

Get the console color associated with this log level

Log ( Level level, string message ) : bool

Log given message. Example of a log message: [2008-04-10 13:30:00Z] WARNING: this is the message

Logger ( ) : System

메소드 상세

Close() 공개 메소드

Close the underlying connection write stream.
public Close ( ) : bool
리턴 bool

Debug() 공개 메소드

Log a debug-level message
public Debug ( string message ) : bool
message string the message to log
리턴 bool

Error() 공개 메소드

Log an error-level message
public Error ( string message ) : bool
message string the message to log
리턴 bool

GetInstance() 공개 정적인 메소드

public static GetInstance ( ) : Logger
리턴 Logger

Info() 공개 메소드

Log an info-level message
public Info ( string message ) : bool
message string the message to log
리턴 bool

WTF() 공개 메소드

Log a WTF-level message
public WTF ( string message ) : bool
message string the message to log
리턴 bool

Warning() 공개 메소드

Log a warning-level message
public Warning ( string message ) : bool
message string the message to log
리턴 bool

프로퍼티 상세

WriteLock 공개적으로 프로퍼티

A lock to ensure only one write to the stream can happen at once
public object WriteLock
리턴 object