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 Wrench.Log.Active.

Static Public Member Functions

static void Add (string text)
 Adds a message to log. More...
 
static void Add (object e)
 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 Wrench logging any messages. More...
 

Events

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

Member Function Documentation

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

Adds a message to log.

Parameters
textThe message to log.
static void Wrench.Log.Add ( object  e)
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 Wrench.Log.Active =true
static

Set active to false to prevent Wrench logging any messages.

Event Documentation

OnLogEvent Wrench.Log.OnLog
static

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