lokinet/llarp/util/logging/loglevel.hpp

28 lines
435 B
C++
Raw Normal View History

#pragma once
2019-06-13 13:26:34 +00:00
#include <string>
#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
{
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);
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