HydraExpress™ C++ 2020 |
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.
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 © 2020 Rogue Wave Software, Inc. All Rights Reserved. |