C# Class Economy.scripts.TextLogger

Mostra file Open project: jpcsupplies/Economy_mod

Public Methods

Method Description
Flush ( ) : void
Init ( ) : void

Initialize the TextLogger with a default filename. The TextLogger must be Initialized before it can write log entries. This allows a TextLogger to be created and the Write(...) methods invoked without the TextLogger initialized so you don't have to wrap the TextLogger variable with if statements.

Init ( string filename, bool addTimestamp = false, int delayedWrite ) : void

Initialize the TextLogger with a custom filename. The TextLogger must be Initialized before it can write log entries. This allows a TextLogger to be created and the Write(...) methods invoked without the TextLogger initialized so you don't have to wrap the TextLogger variable with if statements.

Terminate ( ) : void
WriteError ( string text ) : void
WriteException ( Exception ex, string additionalInformation = null ) : void
WriteGameLog ( string text ) : void
WriteInfo ( string text ) : void
WriteRaw ( TraceEventType eventType, string text ) : void
WriteStart ( string text ) : void
WriteStop ( string text ) : void
WriteVerbose ( string text ) : void
WriteWarning ( string text ) : void

Private Methods

Method Description
Write ( TraceEventType eventType, bool writeRaw, string text ) : void

Method Details

Flush() public method

public Flush ( ) : void
return void

Init() public method

Initialize the TextLogger with a default filename. The TextLogger must be Initialized before it can write log entries. This allows a TextLogger to be created and the Write(...) methods invoked without the TextLogger initialized so you don't have to wrap the TextLogger variable with if statements.
public Init ( ) : void
return void

Init() public method

Initialize the TextLogger with a custom filename. The TextLogger must be Initialized before it can write log entries. This allows a TextLogger to be created and the Write(...) methods invoked without the TextLogger initialized so you don't have to wrap the TextLogger variable with if statements.
public Init ( string filename, bool addTimestamp = false, int delayedWrite ) : void
filename string
addTimestamp bool
delayedWrite int
return void

Terminate() public method

public Terminate ( ) : void
return void

WriteError() public method

public WriteError ( string text ) : void
text string
return void

WriteException() public method

public WriteException ( Exception ex, string additionalInformation = null ) : void
ex System.Exception
additionalInformation string
return void

WriteGameLog() public static method

public static WriteGameLog ( string text ) : void
text string
return void

WriteInfo() public method

public WriteInfo ( string text ) : void
text string
return void

WriteRaw() public method

public WriteRaw ( TraceEventType eventType, string text ) : void
eventType TraceEventType
text string
return void

WriteStart() public method

public WriteStart ( string text ) : void
text string
return void

WriteStop() public method

public WriteStop ( string text ) : void
text string
return void

WriteVerbose() public method

public WriteVerbose ( string text ) : void
text string
return void

WriteWarning() public method

public WriteWarning ( string text ) : void
text string
return void