15 #include <AP_Platform.h> 54 AP_COMMON_API
void AP_COMMON_CALL
AP_LogTrace(
const char* message, ...)
56 __attribute__ ((format (printf, 1, 2)))
69 AP_COMMON_API
void AP_COMMON_CALL
AP_LogDebug(
const char* message, ...)
71 __attribute__ ((format (printf, 1, 2)))
84 AP_COMMON_API
void AP_COMMON_CALL
AP_LogInfo(
const char* message, ...)
86 __attribute__ ((format (printf, 1, 2)))
99 AP_COMMON_API
void AP_COMMON_CALL
AP_LogWarn(
const char* message, ...)
101 __attribute__ ((format (printf, 1, 2)))
114 AP_COMMON_API
void AP_COMMON_CALL
AP_LogError(
const char* message, ...)
116 __attribute__ ((format (printf, 1, 2)))
127 AP_COMMON_API
void AP_COMMON_CALL
AP_LogForce(
const char* message, ...)
129 __attribute__ ((format (printf, 1, 2)))
142 AP_COMMON_API
void AP_COMMON_CALL
AP_LogCrit(
const char* message, ...)
144 __attribute__ ((format (printf, 1, 2)))
157 AP_COMMON_API
void AP_COMMON_CALL
AP_LogFatal(
const char* message, ...)
159 __attribute__ ((format (printf, 1, 2)))
175 AP_COMMON_API
void AP_COMMON_CALL
AP_DoLog(
enum AP_LogLevel level,
const char* message, va_list args)
177 __attribute__ ((format (printf, 2, 0)))
193 __attribute__ ((format (printf, 2, 3)))
238 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:27
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.