WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
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)
 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.

Definition at line 14 of file Log.cs.

Member Function Documentation

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

Writes the specified debug message to the log file.

Todo:
Make conditional compilation work
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.

Definition at line 216 of file Log.cs.

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.

Definition at line 144 of file Log.cs.

static void DirectOutput.Log.Exception ( Exception  E)
static

Writes a exception to the log.

Parameters
EThe Exception to be logged.

Definition at line 203 of file Log.cs.

static void DirectOutput.Log.Finish ( )
static

Finishes the logger.
Closes the log file.

Definition at line 78 of file Log.cs.

static void DirectOutput.Log.Init ( )
static

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

Definition at line 40 of file Log.cs.

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

Writes a warning message to the log.

Parameters
MessageThe message.

Definition at line 134 of file Log.cs.

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

Writes the specified message to the logfile.

Parameters
MessageThe message.

Definition at line 99 of file Log.cs.

Property Documentation

string DirectOutput.Log.Filename
staticgetset

Gets or sets the filename for the log.

The filename.

Definition at line 31 of file Log.cs.


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