diff options
-rw-r--r-- | src/libcamera/include/log.h | 1 | ||||
-rw-r--r-- | src/libcamera/log.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libcamera/include/log.h b/src/libcamera/include/log.h index 41f8a756..74439848 100644 --- a/src/libcamera/include/log.h +++ b/src/libcamera/include/log.h @@ -12,6 +12,7 @@ namespace libcamera { enum LogSeverity { + LogDebug, LogInfo, LogWarning, LogError, diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp index 3715e69d..44b3a5bb 100644 --- a/src/libcamera/log.cpp +++ b/src/libcamera/log.cpp @@ -23,6 +23,8 @@ namespace libcamera { /** * \enum LogSeverity * Log message severity + * \var LogDebug + * Debug message * \var LogInfo * Informational message * \var LogWarning @@ -43,6 +45,7 @@ namespace libcamera { static const char *log_severity_name(LogSeverity severity) { static const char * const names[] = { + " DBG", "INFO", "WARN", " ERR", |