|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
#include <Logger.h>
Inheritance diagram for acdk::util::logging::Logger:
List of all members.
Detailed Description
represend one logical logger A logger can have a hierarchical name and 0 - n consumers
- Author:
- Roger Rene Kommer
|
Public Member Functions |
| Logger (INP(RString) name) |
| Logger (INP(RString) name, int minLevel) |
| ~Logger () |
void | addConsumer (IN(RLogConsumer) cons) |
bool | doLog (int level) const |
| return false if level is greater than this logger level and logger has any consumer
|
void | log (int level, INP(RString) cat, INP(RString) text) |
| log a message
|
void | log (int level, INP(RString) cat, INP(RString) text, const char *file, int line) |
| log a message
|
void | log (int level, INP(RString) cat, INP(RString) text, INP(RNamedParameterArray) args, const char *file, int line) |
void | log (INP(RLogRecord) log) |
int | getMinLevel () const |
void | setMinLevel (int level) |
RString | getName () |
| returns the ClassName for this object by default
|
void | setName (INP(RString) newname) |
Static Public Member Functions |
RString | formatCompilerSourceMsg (IN(RString) msg, IN(RString) file, int line, int level=Error) |
| Formats a message in compiler compatible format.
|
Protected Attributes |
int | _minLevel |
RString | _name |
RLogger | _parent |
RLogConsumerArray | _consumer |
bool | _inheritConsumer |
Constructor & Destructor Documentation
acdk::util::logging::Logger::Logger |
( |
INP(RString) |
name |
) |
|
|
acdk::util::logging::Logger::Logger |
( |
INP(RString) |
name, |
|
|
int |
minLevel |
|
) |
|
|
|
- Parameters:
-
minLevel | minimum level this logger should be log |
|
acdk::util::logging::Logger::~Logger |
( |
|
) |
|
|
Member Function Documentation
void acdk::util::logging::Logger::addConsumer |
( |
IN(RLogConsumer) |
cons |
) |
|
|
bool acdk::util::logging::Logger::doLog |
( |
int |
level |
) |
const [inline] |
|
|
return false if level is greater than this logger level and logger has any consumer
|
RString acdk::util::logging::Logger::formatCompilerSourceMsg |
( |
IN(RString) |
msg, |
|
|
IN(RString) |
file, |
|
|
int |
line, |
|
|
int |
level = Error |
|
) |
[static] |
|
|
Formats a message in compiler compatible format.
|
int acdk::util::logging::Logger::getMinLevel |
( |
|
) |
const [inline] |
|
RString acdk::util::logging::Logger::getName |
( |
|
) |
[inline, virtual] |
|
void acdk::util::logging::Logger::log |
( |
INP(RLogRecord) |
log |
) |
|
|
void acdk::util::logging::Logger::log |
( |
int |
level, |
|
|
INP(RString) |
cat, |
|
|
INP(RString) |
text, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
|
|
|
log a message
- Parameters:
-
file | must be a static string (for instance via macro __FILE__) |
|
void acdk::util::logging::Logger::log |
( |
int |
level, |
|
|
INP(RString) |
cat, |
|
|
INP(RString) |
text |
|
) |
|
|
void acdk::util::logging::Logger::setMinLevel |
( |
int |
level |
) |
[inline] |
|
void acdk::util::logging::Logger::setName |
( |
INP(RString) |
newname |
) |
[inline] |
|
Member Data Documentation
|
|