HydraExpress™ C++ 4.8 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
Filters logging messages based on their log level. More...
#include <rwsf/core/LogLevelFilter.h>
Inherits rwsf::LoggerImp.
Additional Inherited Members | |
Public Member Functions inherited from rwsf::LoggerImp | |
virtual void | init (const rwsf::Config &config) |
virtual void | log (rwsf::Logger::LogLevel level, const std::string &message)=0 |
virtual bool | wouldLog (rwsf::Logger::LogLevel level) |
Protected Member Functions inherited from rwsf::BodyBase | |
BodyBase (void) | |
BodyBase (const BodyBase &second) | |
virtual | ~BodyBase (void) |
BodyBase & | operator= (const BodyBase &second) |
This Logger implementation filters logging requests by whether they are at or below a specified log level threshold. To use it, you must specify ".createLogLevelFilter" in the logger configuration file. Under the logger definition, the following properties must be specified:
logger
The logger to send log statements to once they pass the filter.filter
The log level threshold. The possible threshold values (in order from the lowest, least inclusive level, to the highest, most inclusive level):The threshold values map directly to log levels defined in the Logger::LogLevel enumeration.
Example of a filter definition in logger configuration file, typically loggers.xml:
This filter would log any log message with the level "fatal", "error", "warn", or "info", and would block all others.
Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved. |