aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/utils/logger.h')
-rw-r--r--Source/charon/utils/logger.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/Source/charon/utils/logger.h b/Source/charon/utils/logger.h
index a104ca0be..3841955df 100644
--- a/Source/charon/utils/logger.h
+++ b/Source/charon/utils/logger.h
@@ -53,31 +53,39 @@ enum logger_level_t {
*/
ERROR = 2,
/**
+ * Logs important for the sysadmin.
+ */
+ AUDIT = 4,
+ /**
* Raw data dumps.
*/
- RAW = 4,
+ RAW = 8,
/**
* Private data dumps.
*/
- PRIVATE = 8,
+ PRIVATE = 16,
/**
- * Use more detailed output for those above.
+ * Log most important output, can be omitted.
+ */
+ LEVEL0 = 0,
+ /**
+ * Log more detailed output.
*/
- MORE = 16,
+ LEVEL1 = 32,
/**
- * Use even more detailed output.
+ * Log even more detailed output.
*/
- MOST = MORE + 32,
+ LEVEL2 = LEVEL1 + 64,
/**
- * Use full detailed output.
+ * Use maximum detailed output.
*/
- ALL = MOST + 64,
+ LEVEL3 = LEVEL2 + 128,
/**
* Summary for all types with all detail-levels.
*/
- FULL = ALL + CONTROL + ERROR + RAW + PRIVATE
+ FULL = LEVEL3 + CONTROL + ERROR + RAW + PRIVATE + AUDIT
};
typedef struct logger_t logger_t;