16 #include <AP_Platform.h> 55 AP_COMMON_API
void AP_COMMON_CALL
AP_LogTrace(
const char* message, ...)
57 __attribute__ ((format (printf, 1, 2)))
70 AP_COMMON_API
void AP_COMMON_CALL
AP_LogDebug(
const char* message, ...)
72 __attribute__ ((format (printf, 1, 2)))
85 AP_COMMON_API
void AP_COMMON_CALL
AP_LogInfo(
const char* message, ...)
87 __attribute__ ((format (printf, 1, 2)))
100 AP_COMMON_API
void AP_COMMON_CALL
AP_LogWarn(
const char* message, ...)
102 __attribute__ ((format (printf, 1, 2)))
115 AP_COMMON_API
void AP_COMMON_CALL
AP_LogError(
const char* message, ...)
117 __attribute__ ((format (printf, 1, 2)))
128 AP_COMMON_API
void AP_COMMON_CALL
AP_LogForce(
const char* message, ...)
130 __attribute__ ((format (printf, 1, 2)))
143 AP_COMMON_API
void AP_COMMON_CALL
AP_LogCrit(
const char* message, ...)
145 __attribute__ ((format (printf, 1, 2)))
158 AP_COMMON_API
void AP_COMMON_CALL
AP_LogFatal(
const char* message, ...)
160 __attribute__ ((format (printf, 1, 2)))
176 AP_COMMON_API
void AP_COMMON_CALL
AP_DoLog(
enum AP_LogLevel level,
const char* message, va_list args)
178 __attribute__ ((format (printf, 2, 0)))
194 __attribute__ ((format (printf, 2, 3)))
239 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:28
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.