DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.Log Class Reference

A simple logger used to record important events and exceptions.
More...

Static Public Member Functions

static void Init ()
 Initializes the log using the file defnied in the Filename property. More...
 
static void Finish ()
 Finishes the logger.
Closes the log file. More...
 
static void Write (string Message)
 Writes the specified message to the logfile. More...
 
static void Warning (string Message)
 Writes a warning message to the log. More...
 
static void Exception (string Message="", Exception E=null)
 Writes a exception message to the log. More...
 
static void Exception (Exception E=null)
 Writes a exception to the log. More...
 
static void Debug (string Message="")
 Writes the specified debug message to the log file. More...
 

Properties

static string Filename [get, set]
 Gets or sets the filename for the log. More...
 

Detailed Description

A simple logger used to record important events and exceptions.

Member Function Documentation

static void DirectOutput.Log.Debug ( string  Message = "")
static

Writes the specified debug message to the log file.

Note
The calls to this method are only executed, if the DebugLog symbol is defined. Generally this will only be active in special debug releases. The statement to define or undefine the DebugLog symbol can be found on the top of the code of this class.
Parameters
MessageThe message to be written to the log file.
static void DirectOutput.Log.Exception ( string  Message = "",
Exception  E = null 
)
static

Writes a exception message to the log.

Parameters
MessageThe message.
EThe Exception to be logged.
static void DirectOutput.Log.Exception ( Exception  E = null)
static

Writes a exception to the log.

Parameters
EThe Exception to be logged.
static void DirectOutput.Log.Finish ( )
static

Finishes the logger.
Closes the log file.

static void DirectOutput.Log.Init ( )
static

Initializes the log using the file defnied in the Filename property.

static void DirectOutput.Log.Warning ( string  Message)
static

Writes a warning message to the log.

Parameters
MessageThe message.
static void DirectOutput.Log.Write ( string  Message)
static

Writes the specified message to the logfile.

Parameters
MessageThe message.

Property Documentation

string DirectOutput.Log.Filename
staticgetset

Gets or sets the filename for the log.

The filename.


The documentation for this class was generated from the following file: