HydraExpress™ C++ 2025.2 |
HydraExpress™ C++ API Reference Guide |
Reformats log messages with the message's log level and a timestamp. More...
#include <rwsf/core/LogTimeFormatter.h>
The LogTimeFormatter prepends the message with the message's log level and a timestamp. This information is separated by a bar (|) character.
Do not instantiate this class directly. Instead, use ".createLogTimeFormatter" in the logger configuration file when specifying a formatter property. For more information on the Agent logger, see the logging chapter in the User Guide.
The following example demonstrates using the LogTimeFormatter in a logger configuration file, typically <installdir>\conf\loggers.xml:
Example of formatted output in a log file:
|
Copyright © 2026 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |