diff options
Diffstat (limited to 'src/libstrongswan/utils/logger.h')
-rw-r--r-- | src/libstrongswan/utils/logger.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/logger.h b/src/libstrongswan/utils/logger.h index 0bcd50d34..b24940d70 100644 --- a/src/libstrongswan/utils/logger.h +++ b/src/libstrongswan/utils/logger.h @@ -25,6 +25,7 @@ #define LOGGER_H_ #include <stdio.h> +#include <stdarg.h> #include <types.h> @@ -114,6 +115,19 @@ struct logger_t { void (*log) (logger_t *this, log_level_t log_level, const char *format, ...); /** + * @brief Log an entry, using vprintf() style va_list parameters. + * + * All specified loglevels must be activated that + * the log is done. + * + * @param this logger_t object + * @param loglevel or'ed set of log_level_t's + * @param format printf like format string + * @param args va_list argument list + */ + void (*logv) (logger_t *this, log_level_t log_level, const char *format, va_list args); + + /** * @brief Log some bytes, useful for debugging. * * All specified loglevels must be activated that |