BasicLog::Logger Struct Reference

#include <basiclog.h>

Collaboration diagram for BasicLog::Logger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Logger (BasicLog *target, const char *strStart)
 ~Logger ()
 Closes the log-level.
void line (const char *str)
void append (const char *str)
void succeede ()

Detailed Description

This struct simplifies logging in some cases. Use it in functions like in the following example:
 Logger log( BasicApp::getThe(), "Entered method ..." );
 [...]
 log.line("Method progressed.");
 [...]
 if( failed )
    return;
 [...]
 log.succeede();
 return;


Constructor & Destructor Documentation

BasicLog::Logger::Logger ( BasicLog target,
const char *  strStart 
) [inline]

Parameters:
target the object used for logging
strStart the string to write at the beginning


Member Function Documentation

void BasicLog::Logger::line ( const char *  str  )  [inline]

Logs a line, using BasicLog::logLevelLine().

void BasicLog::Logger::append ( const char *  str  )  [inline]

Logs a string into the current line, using BasicLog::logString().

void BasicLog::Logger::succeede (  )  [inline]

After a call to this method, it will write "done." on destruction. If bSuccess is false on destruction, a "failed." is written.


The documentation for this struct was generated from the following file:
Generated on Wed May 9 17:36:11 2007 for netrinjo by  doxygen 1.5.1