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... | |
|
inlinestatic |
Adds a message to log.
text | The message to log. |
|
inlinestatic |
Adds an object of any kind to log. This is just a convenience method as it internally calls ToString on the object.
|
static |
Set active to false to prevent Wrench logging any messages.
|
static |
An event fired whenever Wrench logs a message, unless logging is not active.