17 #include <AP_Platform.h>
56 AP_COMMON_API
void AP_COMMON_CALL
AP_LogTrace(
const char* message, ...)
58 __attribute__ ((format (printf, 1, 2)))
71 AP_COMMON_API
void AP_COMMON_CALL
AP_LogDebug(
const char* message, ...)
73 __attribute__ ((format (printf, 1, 2)))
86 AP_COMMON_API
void AP_COMMON_CALL
AP_LogInfo(
const char* message, ...)
88 __attribute__ ((format (printf, 1, 2)))
101 AP_COMMON_API
void AP_COMMON_CALL
AP_LogWarn(
const char* message, ...)
103 __attribute__ ((format (printf, 1, 2)))
116 AP_COMMON_API
void AP_COMMON_CALL
AP_LogError(
const char* message, ...)
118 __attribute__ ((format (printf, 1, 2)))
129 AP_COMMON_API
void AP_COMMON_CALL
AP_LogForce(
const char* message, ...)
131 __attribute__ ((format (printf, 1, 2)))
144 AP_COMMON_API
void AP_COMMON_CALL
AP_LogCrit(
const char* message, ...)
146 __attribute__ ((format (printf, 1, 2)))
159 AP_COMMON_API
void AP_COMMON_CALL
AP_LogFatal(
const char* message, ...)
161 __attribute__ ((format (printf, 1, 2)))
177 AP_COMMON_API
void AP_COMMON_CALL
AP_DoLog(
enum AP_LogLevel level,
const char* message, va_list args)
179 __attribute__ ((format (printf, 2, 0)))
195 __attribute__ ((format (printf, 2, 3)))
240 AP_COMMON_API
int AP_COMMON_CALL AP_GetLogFD();
AP_COMMON_API void AP_COMMON_CALL AP_LogInfo(const char *message,...)
Log a message at INFO level.
AP_COMMON_API void AP_COMMON_CALL AP_LogError(const char *message,...)
Log a message at ERROR level.
AP_COMMON_API void AP_COMMON_CALL AP_LogForce(const char *message,...)
Always log a message.
AP_COMMON_API enum AP_LogLevel AP_COMMON_CALL AP_StringToLogLevel(const char *str)
Utility function to convert a character string to a logging verbosity level from the AP_LogLevel enum...
AP_COMMON_API void AP_COMMON_CALL AP_LogTrace(const char *message,...)
Log a message at TRACE level.
AP_COMMON_API enum AP_LogLevel AP_COMMON_CALL AP_GetLogLevel()
Get the current logging level.
AP_COMMON_API void AP_COMMON_CALL AP_LogWarn(const char *message,...)
Log a message at WARN level.
AP_COMMON_API void AP_COMMON_CALL AP_DoLogV(enum AP_LogLevel level, const char *message,...)
Log a message at a specific log level.
AP_LogLevel
Enumeration of logging verbosity levels.
Definition: AP_Logger.h:29
AP_COMMON_API const char *AP_COMMON_CALL AP_LogLevelToString(enum AP_LogLevel level)
Utility function to convert a logging verbosity level from the AP_LogLevel enumeration to a human-rea...
AP_COMMON_API void AP_COMMON_CALL AP_LogCrit(const char *message,...)
Log a message at CRIT level.
AP_COMMON_API void AP_COMMON_CALL AP_LogDebug(const char *message,...)
Log a message at DEBUG level.
AP_COMMON_API void AP_COMMON_CALL AP_DoLog(enum AP_LogLevel level, const char *message, va_list args)
Log a message at a specific log level.
AP_COMMON_API const char *AP_COMMON_CALL AP_GetLogFileName()
Get the current logging destination.
AP_COMMON_API void AP_COMMON_CALL AP_LogFatal(const char *message,...)
Log a message at FATAL level.
AP_COMMON_API const char *AP_COMMON_CALL AP_GetUTF8LogFileName()
Get the current logging destination.