C# Class Terrarium.Tools.TerrariumTraceListener

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Fail() public méthode

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.
Résultat void

TerrariumTraceListener() public méthode

Creates a default TerrariumTraceListener with logging turned off
public TerrariumTraceListener ( ) : System
Résultat System

TerrariumTraceListener() public méthode

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
Résultat System

Write() public méthode

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

Write() public méthode

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.
Résultat void

Write() public méthode

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

Write() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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.
Résultat void

WriteLine() public méthode

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

WriteLine() public méthode

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