fluidvis
|
#include <Log4SX.h>
Public Member Functions | |
EXL | FileLogger (string filename) |
EXL | ~FileLogger () |
EXL bool | hasErrors () const |
EXL void | close () |
EXL Logger & | operator<< (const Level level) |
EXL Logger & | operator<< (const LogMarkup m) |
EXL Logger & | operator<< (const Annotation a) |
EXL Logger & | operator<< (char value) |
EXL Logger & | operator<< (unsigned char value) |
EXL Logger & | operator<< (short value) |
EXL Logger & | operator<< (unsigned short value) |
EXL Logger & | operator<< (int value) |
EXL Logger & | operator<< (unsigned int value) |
EXL Logger & | operator<< (long value) |
EXL Logger & | operator<< (unsigned long value) |
EXL Logger & | operator<< (float value) |
EXL Logger & | operator<< (double value) |
EXL Logger & | operator<< (string value) |
Public Member Functions inherited from sx::Logger | |
virtual EXL | ~Logger () |
EXL void | setMinLevel (LogLevel level) |
EXL LogLevel | getMinLevel () const |
EXL LogLevel | getLevel () const |
Additional Inherited Members | |
Static Public Member Functions inherited from sx::Logger | |
static EXL string | newLine () |
static EXL void | addLogger (string ID, Logger *logger) |
static EXL void | setDefaultLogger (string ID) |
static EXL Logger & | get () |
static EXL void | deleteLogger (string ID) |
Protected Member Functions inherited from sx::Logger | |
EXL | Logger () |
bool | takeMessage () const |
Protected Attributes inherited from sx::Logger | |
LogLevel | minLevel |
LogLevel | level |
A Logger, which collects the messages, and stores the log in a file. In the case of an IO error of the logger, messages are simply ignored.
EXL sx::FileLogger::FileLogger | ( | string | filename | ) |
Default constructor. Opens file at location filename for writing to it.
EXL sx::FileLogger::~FileLogger | ( | ) |
deconstructor
EXL void sx::FileLogger::close | ( | ) |
Closes file. Messages passed to the logger after execution of close are ignored.
EXL bool sx::FileLogger::hasErrors | ( | ) | const |
If file caused errors, true is returned.
Reimplemented from sx::Logger.
The LogMarkup message is posted in the file followed by newline, and enclosed by the charactersequence —.
Implements sx::Logger.
|
virtual |
The LogMarkup message is posted in the file starting with newline.
Implements sx::Logger.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |