libcamera: log: Add a debug log level

Many of the message logged by the library will be debug messages, we
thus need a debug log level.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2018-12-19 01:20:26 +02:00
parent 3c8886d698
commit 907602eab5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@
namespace libcamera {
enum LogSeverity {
LogDebug,
LogInfo,
LogWarning,
LogError,
+3
View File
@@ -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",