|
atscppapi
1.0.9
C++ wrapper for Apache Traffic Server API
|
Helpers and Classes related to Logging. More...
Go to the source code of this file.
Classes | |
| class | atscppapi::Logger |
| Create log files that are automatically rolled and cleaned up as space is required. More... | |
Macros | |
| #define | ATSCPPAPI_LOGGER_H_ |
| #define | ATSCPPAPI_PRINTFLIKE(fmt, arg) |
| #define | LOG_DEBUG(log, fmt,...) |
| #define | LOG_INFO(log, fmt,...) |
| #define | LOG_ERROR(log, fmt,...) |
| #define | STRINGIFY0(x) #x |
| #define | STRINGIFY(x) STRINGIFY0(x) |
| #define | LINE_NO STRINGIFY(__LINE__) |
| #define | TS_DEBUG(tag, fmt,...) |
| #define | TS_ERROR(tag, fmt,...) |
Helpers and Classes related to Logging.
| #define LOG_DEBUG | ( | log, | |
| fmt, | |||
| ... | |||
| ) |
A helper macro for Logger objects that allows you to easily add a debug level message which will include file, line, and function name with the message. It's very easy to use:
| #define LOG_ERROR | ( | log, | |
| fmt, | |||
| ... | |||
| ) |
A helper macro for Logger objects that allows you to easily add a error level message which will include file, line, and function name with the message. See example in LOG_DEBUG
| #define LOG_INFO | ( | log, | |
| fmt, | |||
| ... | |||
| ) |
A helper macro for Logger objects that allows you to easily add a info level message which will include file, line, and function name with the message. See example in LOG_DEBUG
| #define TS_DEBUG | ( | tag, | |
| fmt, | |||
| ... | |||
| ) |
A helper macro to get access to the Diag messages available in traffic server. These can be enabled via traffic_server -T "tag.*" or since this macro includes the file can you further refine to an individual file or even a particular line! This can also be enabled via records.config.
| #define TS_ERROR | ( | tag, | |
| fmt, | |||
| ... | |||
| ) |
A helper macro to get access to the error.log messages available in traffic server. This will also output a DEBUG message visible via traffic_server -T "tag.*", or by enabling the tag in records.config.
1.8.3.1