Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members

Debugging::Logger Class Reference

List of all members.

Public Member Functions

 Logger (TextWriter writer)
 Initialize logger that writes to the given TextWriter. Sets initial indentation step to 4.

 Logger ()
 Initialize logger to standard output. Sets initial indentation step to 4.

void log (string msg)
 Log the given message to the output writer and append a newline.

void log (string msg, Object arg1)
 Log the given message to the output writer and append a newline.

void log (string msg, Object arg1, Object arg2)
 Log the given message to the output writer and append a newline.

void log (string msg, Object arg1, Object arg2, Object arg3)
 Log the given message to the output writer and append a newline.

void log (string msg, Object[] args)
 Log the given message to the output writer and append a newline.


Static Public Member Functions

Logger operator++ (Logger l)
 Increment indentation level.

Logger operator-- (Logger l)
 Decrement indentation level.


Properties

int indent
 Indentation step property (4 by default).

int level
 Return current indentation level.

TextWriter writer
int _indent
int _level

Private Member Functions

void doIndent ()
 Write indentation to writer.


Constructor & Destructor Documentation

Debugging::Logger::Logger TextWriter  writer  ) 
 

Initialize logger that writes to the given TextWriter. Sets initial indentation step to 4.

Debugging::Logger::Logger  ) 
 

Initialize logger to standard output. Sets initial indentation step to 4.


Member Function Documentation

void Debugging::Logger::doIndent  )  [private]
 

Write indentation to writer.

void Debugging::Logger::log string  msg,
Object[]  args
 

Log the given message to the output writer and append a newline.

void Debugging::Logger::log string  msg,
Object  arg1,
Object  arg2,
Object  arg3
 

Log the given message to the output writer and append a newline.

void Debugging::Logger::log string  msg,
Object  arg1,
Object  arg2
 

Log the given message to the output writer and append a newline.

void Debugging::Logger::log string  msg,
Object  arg1
 

Log the given message to the output writer and append a newline.

void Debugging::Logger::log string  msg  ) 
 

Log the given message to the output writer and append a newline.

Logger Debugging::Logger::operator++ Logger  l  )  [static]
 

Increment indentation level.

Logger Debugging::Logger::operator-- Logger  l  )  [static]
 

Decrement indentation level.


Property Documentation

int Debugging::Logger::_indent [private]
 

int Debugging::Logger::_level [private]
 

int Debugging::Logger::indent [get, set]
 

Indentation step property (4 by default).

int Debugging::Logger::level [get]
 

Return current indentation level.

TextWriter Debugging::Logger::writer [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7