AUI Framework
develop
Cross-platform base for C++ UI apps
|
A logger class. More...
#include <AUI/Logging/ALogger.h>
Logger is used for journaling application events like errors or some user actions.
It provides some extra functions like logging to file and output formatting.
It provides std::cout
-like API.
Example:
Possible output:
It's convenient to define LOG_TAG
variable for your class:
|
inline |
filename | file name |
For the global logger, use ALogger::info, ALogger::warn, etc...
> All members, including inherited
|
inline |
Useful when sending log file to remote server.
level | level |
prefix | prefix |
|
inline |
path | path to the log file. |
Log file is opened immediately in setLogFile.
ALogger::global().setLogFile(...)
expression would cause the default log file location to open and to close immediately, when opening a log file in the specified location, causing empty file and two Log file:
entries.
|
static |
path | path to the log file. |
Contents