2024-12-04 08:06:35 +00:00
|
|
|
#pragma once
|
2024-12-02 07:24:30 +00:00
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "fsutils.h"
|
|
|
|
|
2024-12-17 16:24:51 +00:00
|
|
|
namespace video2x {
|
|
|
|
namespace logutils {
|
|
|
|
|
2024-12-03 05:22:07 +00:00
|
|
|
enum class Video2xLogLevel {
|
2024-12-02 07:24:30 +00:00
|
|
|
Unknown,
|
|
|
|
Trace,
|
|
|
|
Debug,
|
|
|
|
Info,
|
|
|
|
Warning,
|
|
|
|
Error,
|
|
|
|
Critical,
|
|
|
|
Off
|
|
|
|
};
|
|
|
|
|
2024-12-03 05:22:07 +00:00
|
|
|
void set_log_level(Video2xLogLevel log_level);
|
2024-12-02 07:24:30 +00:00
|
|
|
|
2024-12-17 16:24:51 +00:00
|
|
|
std::optional<Video2xLogLevel> find_log_level_by_name(
|
|
|
|
const fsutils::StringType &log_level_name
|
|
|
|
);
|
|
|
|
|
|
|
|
} // namespace logutils
|
|
|
|
} // namespace video2x
|