#include <basiclog.h>
Collaboration diagram for BasicLog::Logger:
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 () |
Logger log( BasicApp::getThe(), "Entered method ..." ); [...] log.line("Method progressed."); [...] if( failed ) return; [...] log.succeede(); return;
BasicLog::Logger::Logger | ( | BasicLog * | target, | |
const char * | strStart | |||
) | [inline] |
target | the object used for logging | |
strStart | the string to write at the beginning |
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.