Detailed Description

Provides global logging for this builder.

Public Member Functions

 Log (OnLog onLogged)
 Creates a new logger. More...
 
void Add (object obj)
 Adds the given object to the log. Simply a helper; ToString is called on the object. More...
 
void Add (string text)
 Adds the given text message to the log. More...
 

Public Attributes

bool Quiet =false
 Set this to true if no logging should occur. More...
 
string LogFile =null
 The path to the file that logging will be directed to. More...
 
FileStream LogFileStream =null
 A filestream used when logging is directed at a file. More...
 

Events

OnLog OnLogged =null
 Called when logging is active and it's not being logged to a file. More...
 

Constructor & Destructor Documentation

SPABuilder.Log.Log ( OnLog  onLogged)
inline

Creates a new logger.

Parameters
onLoggedThe method to call when logging is active and it's not being logged to a file.

Member Function Documentation

void SPABuilder.Log.Add ( object  obj)
inline

Adds the given object to the log. Simply a helper; ToString is called on the object.

Parameters
objThe object to log.
void SPABuilder.Log.Add ( string  text)
inline

Adds the given text message to the log.

Parameters
textThe message to log.

Member Data Documentation

string SPABuilder.Log.LogFile =null

The path to the file that logging will be directed to.

FileStream SPABuilder.Log.LogFileStream =null

A filestream used when logging is directed at a file.

bool SPABuilder.Log.Quiet =false

Set this to true if no logging should occur.

Event Documentation

OnLog SPABuilder.Log.OnLogged =null

Called when logging is active and it's not being logged to a file.