C# 클래스 TShockAPI.TextLog

Class inheriting ILog for writing logs to a text file
상속: ILog, IDisposable
파일 보기 프로젝트 열기: NyxStudios/TShock 1 사용 예제들

공개 메소드들

메소드 설명
ConsoleError ( string message ) : void

Writes an error to the log file.

ConsoleInfo ( string message ) : void

Writes an informative string to the log file. Also outputs to the console.

Data ( string message ) : void

Writes data to the log file.

Debug ( string message ) : void

Writes a debug string to the log file.

Dispose ( ) : void
Error ( string message ) : void

Writes an error to the log file.

Info ( string message ) : void

Writes an informative string to the log file.

MayWriteType ( TraceLevel type ) : bool
TextLog ( string filename, bool clear ) : System

Creates the log file stream and sets the initial log level.

Warn ( string message ) : void

Writes a warning to the log file.

Write ( string message, TraceLevel level ) : void

Writes a message to the log

메소드 상세

ConsoleError() 공개 메소드

Writes an error to the log file.
public ConsoleError ( string message ) : void
message string The message to be written.
리턴 void

ConsoleInfo() 공개 메소드

Writes an informative string to the log file. Also outputs to the console.
public ConsoleInfo ( string message ) : void
message string The message to be written.
리턴 void

Data() 공개 메소드

Writes data to the log file.
public Data ( string message ) : void
message string The message to be written.
리턴 void

Debug() 공개 메소드

Writes a debug string to the log file.
public Debug ( string message ) : void
message string The message to be written.
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Error() 공개 메소드

Writes an error to the log file.
public Error ( string message ) : void
message string The message to be written.
리턴 void

Info() 공개 메소드

Writes an informative string to the log file.
public Info ( string message ) : void
message string The message to be written.
리턴 void

MayWriteType() 공개 메소드

public MayWriteType ( TraceLevel type ) : bool
type TraceLevel
리턴 bool

TextLog() 공개 메소드

Creates the log file stream and sets the initial log level.
public TextLog ( string filename, bool clear ) : System
filename string The output filename. This file will be overwritten if 'clear' is set.
clear bool Whether or not to clear the log file on initialization.
리턴 System

Warn() 공개 메소드

Writes a warning to the log file.
public Warn ( string message ) : void
message string The message to be written.
리턴 void

Write() 공개 메소드

Writes a message to the log
public Write ( string message, TraceLevel level ) : void
message string
level TraceLevel
리턴 void