C# Класс Economy.scripts.TextLogger

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Write ( TraceEventType eventType, bool writeRaw, string text ) : void

Описание методов

Flush() публичный Метод

public Flush ( ) : void
Результат void

Init() публичный Метод

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
Результат void

Init() публичный Метод

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
Результат void

Terminate() публичный Метод

public Terminate ( ) : void
Результат void

WriteError() публичный Метод

public WriteError ( string text ) : void
text string
Результат void

WriteException() публичный Метод

public WriteException ( Exception ex, string additionalInformation = null ) : void
ex System.Exception
additionalInformation string
Результат void

WriteGameLog() публичный статический Метод

public static WriteGameLog ( string text ) : void
text string
Результат void

WriteInfo() публичный Метод

public WriteInfo ( string text ) : void
text string
Результат void

WriteRaw() публичный Метод

public WriteRaw ( TraceEventType eventType, string text ) : void
eventType TraceEventType
text string
Результат void

WriteStart() публичный Метод

public WriteStart ( string text ) : void
text string
Результат void

WriteStop() публичный Метод

public WriteStop ( string text ) : void
text string
Результат void

WriteVerbose() публичный Метод

public WriteVerbose ( string text ) : void
text string
Результат void

WriteWarning() публичный Метод

public WriteWarning ( string text ) : void
text string
Результат void