C# Class PeerCastStation.Core.Logger

Datei anzeigen Open project: kumaryu/peercaststation

Public Methods

Method Description
AddWriter ( System writer ) : void

ログの出力先を追加します

ClearWriter ( ) : void

全てのログ出力先を外します

Close ( ) : void
Flush ( ) : void
Logger ( Type type ) : System

出力元のクラスを指定してLoggerオブジェクトを初期化します

Logger ( string source ) : System

出力元の名前を指定してLoggerオブジェクトを初期化します

RemoveWriter ( System writer ) : void

指定したWriterをログ出力先から外します

Private Methods

Method Description
Debug ( Exception exception ) : void
Debug ( object format ) : void
Error ( Exception exception ) : void
Error ( object format ) : void
Fatal ( Exception exception ) : void
Fatal ( object format ) : void
Info ( Exception exception ) : void
Info ( object format ) : void
Logger ( ) : System
Output ( LogLevel level, string source, Exception e ) : void
Output ( LogLevel level, string source, string format ) : void
SetOutputListeners ( LoggerOutputTarget targets, LoggerOutputTarget old ) : void
Warn ( Exception exception ) : void
Warn ( object format ) : void

Method Details

AddWriter() public static method

ログの出力先を追加します
public static AddWriter ( System writer ) : void
writer System 出力先として追加するTextWriter
return void

ClearWriter() public static method

全てのログ出力先を外します
public static ClearWriter ( ) : void
return void

Close() static public method

static public Close ( ) : void
return void

Flush() static public method

static public Flush ( ) : void
return void

Logger() public method

出力元のクラスを指定してLoggerオブジェクトを初期化します
public Logger ( Type type ) : System
type System.Type
return System

Logger() public method

出力元の名前を指定してLoggerオブジェクトを初期化します
public Logger ( string source ) : System
source string 出力元の名前
return System

RemoveWriter() public static method

指定したWriterをログ出力先から外します
public static RemoveWriter ( System writer ) : void
writer System
return void