Detailed Description

This class handles logging messages. When a message occurs, it fires an event so a specific application can handle them how it wishes. All logging can also be disabled with Dom.Log.Active.

Static Public Member Functions

static void Add (string text)
 Adds a message to log. More...
 
static void Add (params object[] o)
 Adds an object of any kind to log. This is just a convenience method as it internally calls ToString on the object. More...
 

Static Public Attributes

static bool Active =true
 Set active to false to prevent Dom logging any messages. More...
 

Events

static OnLogEvent OnLog
 An event fired whenever Dom logs a message, unless logging is not active. More...
 

Member Function Documentation

static void Dom.Log.Add ( string  text)
inlinestatic

Adds a message to log.

Parameters
textThe message to log.
static void Dom.Log.Add ( params object[]  o)
inlinestatic

Adds an object of any kind to log. This is just a convenience method as it internally calls ToString on the object.

Member Data Documentation

bool Dom.Log.Active =true
static

Set active to false to prevent Dom logging any messages.

Event Documentation

OnLogEvent Dom.Log.OnLog
static

An event fired whenever Dom logs a message, unless logging is not active.