2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2013-12-15 17:20:56 +01:00
|
|
|
|
|
|
|
#ifndef MPD_LOG_LEVEL_HXX
|
|
|
|
#define MPD_LOG_LEVEL_HXX
|
|
|
|
|
2017-12-12 10:22:20 +01:00
|
|
|
#ifdef _WIN32
|
2013-12-15 17:20:56 +01:00
|
|
|
#include <windows.h>
|
|
|
|
/* damn you, windows.h! */
|
|
|
|
#ifdef ERROR
|
|
|
|
#undef ERROR
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum class LogLevel {
|
|
|
|
/**
|
|
|
|
* Debug message for developers.
|
|
|
|
*/
|
|
|
|
DEBUG,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unimportant informational message.
|
|
|
|
*/
|
|
|
|
INFO,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interesting informational message.
|
|
|
|
*/
|
2020-09-23 12:54:15 +02:00
|
|
|
NOTICE,
|
2013-12-15 17:20:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Warning: something may be wrong.
|
|
|
|
*/
|
|
|
|
WARNING,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An error has occurred, an operation could not finish
|
|
|
|
* successfully.
|
|
|
|
*/
|
|
|
|
ERROR,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|