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:
parent
3c8886d698
commit
907602eab5
2 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
namespace libcamera {
|
namespace libcamera {
|
||||||
|
|
||||||
enum LogSeverity {
|
enum LogSeverity {
|
||||||
|
LogDebug,
|
||||||
LogInfo,
|
LogInfo,
|
||||||
LogWarning,
|
LogWarning,
|
||||||
LogError,
|
LogError,
|
||||||
|
|
|
@ -23,6 +23,8 @@ namespace libcamera {
|
||||||
/**
|
/**
|
||||||
* \enum LogSeverity
|
* \enum LogSeverity
|
||||||
* Log message severity
|
* Log message severity
|
||||||
|
* \var LogDebug
|
||||||
|
* Debug message
|
||||||
* \var LogInfo
|
* \var LogInfo
|
||||||
* Informational message
|
* Informational message
|
||||||
* \var LogWarning
|
* \var LogWarning
|
||||||
|
@ -43,6 +45,7 @@ namespace libcamera {
|
||||||
static const char *log_severity_name(LogSeverity severity)
|
static const char *log_severity_name(LogSeverity severity)
|
||||||
{
|
{
|
||||||
static const char * const names[] = {
|
static const char * const names[] = {
|
||||||
|
" DBG",
|
||||||
"INFO",
|
"INFO",
|
||||||
"WARN",
|
"WARN",
|
||||||
" ERR",
|
" ERR",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue