2021-03-09 22:24:35 +00:00
|
|
|
#pragma once
|
2019-06-13 13:26:34 +00:00
|
|
|
#include <string>
|
2020-05-01 19:51:15 +00:00
|
|
|
#include <optional>
|
2019-04-11 12:58:23 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
// probably will need to move out of llarp namespace for c api
|
|
|
|
enum LogLevel
|
|
|
|
{
|
2019-11-14 21:56:01 +00:00
|
|
|
eLogTrace,
|
2019-04-11 12:58:23 +00:00
|
|
|
eLogDebug,
|
|
|
|
eLogInfo,
|
|
|
|
eLogWarn,
|
|
|
|
eLogError,
|
|
|
|
eLogNone
|
|
|
|
};
|
|
|
|
|
2019-06-13 13:26:34 +00:00
|
|
|
std::string
|
|
|
|
LogLevelToString(LogLevel level);
|
|
|
|
|
2020-01-20 21:00:08 +00:00
|
|
|
std::string
|
|
|
|
LogLevelToName(LogLevel lvl);
|
|
|
|
|
2020-05-01 19:51:15 +00:00
|
|
|
std::optional<LogLevel>
|
2020-01-20 21:00:08 +00:00
|
|
|
LogLevelFromString(std::string level);
|
|
|
|
|
2019-04-11 12:58:23 +00:00
|
|
|
} // namespace llarp
|