fluidvis
|
#include <Log4SX.h>
Public Member Functions | |
virtual EXL | ~Logger () |
EXL void | setMinLevel (LogLevel level) |
EXL LogLevel | getMinLevel () const |
EXL LogLevel | getLevel () const |
virtual EXL Logger & | operator<< (const Level l) |
virtual EXL Logger & | operator<< (const LogMarkup m)=0 |
virtual EXL Logger & | operator<< (const Annotation a)=0 |
virtual EXL Logger & | operator<< (char value)=0 |
virtual EXL Logger & | operator<< (unsigned char value)=0 |
virtual EXL Logger & | operator<< (short value)=0 |
virtual EXL Logger & | operator<< (unsigned short value)=0 |
virtual EXL Logger & | operator<< (int value)=0 |
virtual EXL Logger & | operator<< (unsigned int value)=0 |
virtual EXL Logger & | operator<< (long value)=0 |
virtual EXL Logger & | operator<< (unsigned long value)=0 |
virtual EXL Logger & | operator<< (float value)=0 |
virtual EXL Logger & | operator<< (double value)=0 |
virtual EXL Logger & | operator<< (string value)=0 |
Static Public Member Functions | |
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 | |
EXL | Logger () |
bool | takeMessage () const |
Protected Attributes | |
LogLevel | minLevel |
LogLevel | level |
A Logger base class. The base types, and string objects can be passed to the Logger as messages. Messages are only passed to the logger, iff the minLevel is not higher than level, and minLevel is different from L_NONE. Otherwise the messages are simply ignored. Passing a message <message> to the Logger <logger> at LogLevel <loglevel> would look like <logger> << Level(<loglevel>) << <message>;
|
protected |
default constructor, not used, because Logger is abstract
|
virtual |
deconstructor
|
static |
Adds a logger with identifyer ID to the loggers map. If another logger with the same ID exists already, or the pointer logger has value 0, an exception is thrown.
ID | unique identifyer of the logger |
logger | a new logger, must not be 0 |
an | exception of type Exception is thrown, if another logger has identifyer ID |
|
static |
Deletes the logger with identifyer ID. If no logger with identifyer ID exists, an exception is thrown.
ID | identifyer of logger, which should be deleted |
exception | of type Exception is thrown, if an error occurs |
|
static |
Returns the default logger. A valid default logger must always exist.
EXL LogLevel sx::Logger::getLevel | ( | ) | const |
getter
EXL LogLevel sx::Logger::getMinLevel | ( | ) | const |
getter
|
static |
returns newline
Changes the minLevel of the logger to l. The following messages are ignored, if l is L_NONE or greater than level.
l | new level of the logger |
Reimplemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
Appends a new LogMarkup to the Logger. Each new Message passed to the logger is part of the new markup. Markups are passed to the log independently from the values of level and minLevel.
m | new LogMarkup |
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Appends a new Annotation to the Logger. Annotation should be used to document the messages passed to the logger. Annotations are passed to the log independently from the values of level and minLevel.
a | Annotation |
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
pure virtual |
Passes a message to the logger, and returns a reference to the logger.
Implemented in sx::FileLogger, sx::ListLogger, and sx::ConsoleLogger.
|
static |
Makes the logger with identifyer ID to the default logger. An exception is thrown, if a logger with identifyer ID does not exist.
ID | identifyer of the default logger |
exception | of type Exception is thrown, if an error occurs |
EXL void sx::Logger::setMinLevel | ( | LogLevel | level | ) |
setter
|
protected |
returns true, if messages are not be ignored by the logger
|
protected |
level required to be equal or greater than minLevel, if messages should not be ignored
|
protected |
minimum level the property level is required to be, if messages should not be ignored. If minLevel equals L_NONE, all messages are ignored.