C# Class FileDebug, UnetCharacterController

Simple helper class to debug things to files.
Show file Open project: lucasmontec/UnetCharacterController Class Usage Examples

Public Methods

Method Description
Clear ( string filename = "debug" ) : void

Clears the content of the specified debug file.

DeleteLog ( string filename = "debug" ) : void

Deletes the file log.

Log ( string data, string filename = "debug" ) : void

Log data the the specified file. This method appends data. Each call will log a new line in the file.

Private Methods

Method Description
Path ( string name ) : string

Method Details

Clear() public static method

Clears the content of the specified debug file.
public static Clear ( string filename = "debug" ) : void
filename string The file to find and clear
return void

DeleteLog() public static method

Deletes the file log.
public static DeleteLog ( string filename = "debug" ) : void
filename string The debug file name to delete
return void

Log() public static method

Log data the the specified file. This method appends data. Each call will log a new line in the file.
public static Log ( string data, string filename = "debug" ) : void
data string The line to be writter
filename string The debug file to write to
return void