C# Class Terrarium.Tools.TerrariumTraceListener

The TerrariumTraceListener is responsible for stopping the painting timer whenever an error or assertion occurs.
Inheritance: System.Diagnostics.DefaultTraceListener
Exibir arquivo Open project: eugeniomiro/Terrarium Class Usage Examples

Public Methods

Method Description
Fail ( string message ) : void

Used for logging failure messages

Fail ( string message, string detailMessage ) : void

Used for logging failure messages, along with a detailed message

TerrariumTraceListener ( ) : System

Creates a default TerrariumTraceListener with logging turned off

TerrariumTraceListener ( System.Boolean loggingFlag ) : System

Creates a TerrariumTraceListener with a custom value for logging.

Write ( object o ) : void

Used for logging standard messages

Write ( object o, string category ) : void

Used for logging categorized messages

Write ( string message ) : void

Used for logging standard messages

Write ( string message, string category ) : void

Used for logging categorized messages

WriteLine ( object o ) : void

Used for logging standard messages

WriteLine ( object o, string category ) : void

Used for categorized message logging

WriteLine ( string message ) : void

Used for logging standard messages

WriteLine ( string message, string category ) : void

Used for logging categorized messages

Private Methods

Method Description
showErrorDialog ( string message, string stackTrace ) : void

Creates and displays an error dialog if game errors are enabled. If the dialog fails to show then the Application is exited. If the user clicks the Cancel button the Applicaton is exited.

Method Details

Fail() public method

Used for logging failure messages
public Fail ( string message ) : void
message string Message to log
return void

Fail() public method

Used for logging failure messages, along with a detailed message
public Fail ( string message, string detailMessage ) : void
message string Message to log.
detailMessage string Detailed error message.
return void

TerrariumTraceListener() public method

Creates a default TerrariumTraceListener with logging turned off
public TerrariumTraceListener ( ) : System
return System

TerrariumTraceListener() public method

Creates a TerrariumTraceListener with a custom value for logging.
public TerrariumTraceListener ( System.Boolean loggingFlag ) : System
loggingFlag System.Boolean If True logging is turned on, off otherwise
return System

Write() public method

Used for logging standard messages
public Write ( object o ) : void
o object Object to log, ToString will be called.
return void

Write() public method

Used for logging categorized messages
public Write ( object o, string category ) : void
o object Object to log, ToString will be called.
category string Message category.
return void

Write() public method

Used for logging standard messages
public Write ( string message ) : void
message string Message to log.
return void

Write() public method

Used for logging categorized messages
public Write ( string message, string category ) : void
message string Message to log.
category string Message category.
return void

WriteLine() public method

Used for logging standard messages
public WriteLine ( object o ) : void
o object Object to log, ToString will be called.
return void

WriteLine() public method

Used for categorized message logging
public WriteLine ( object o, string category ) : void
o object Object to log, ToString will be called.
category string Message category.
return void

WriteLine() public method

Used for logging standard messages
public WriteLine ( string message ) : void
message string Message to log.
return void

WriteLine() public method

Used for logging categorized messages
public WriteLine ( string message, string category ) : void
message string Message to log.
category string Message category.
return void