lokinet/llarp/util/logging/loglevel.hpp
Jason Rhinelander 1697bf90fe C++17
Compiles with C++17, replaces ghc::filesystem with std::filesystem,
nonstd::optional with std::optional, and llarp::string_view with
std::string_view.
2020-05-01 17:43:27 -03:00

31 lines
496 B
C++

#ifndef LLARP_UTIL_LOG_LEVEL_HPP
#define LLARP_UTIL_LOG_LEVEL_HPP
#include <string>
#include <optional>
namespace llarp
{
// probably will need to move out of llarp namespace for c api
enum LogLevel
{
eLogTrace,
eLogDebug,
eLogInfo,
eLogWarn,
eLogError,
eLogNone
};
std::string
LogLevelToString(LogLevel level);
std::string
LogLevelToName(LogLevel lvl);
std::optional<LogLevel>
LogLevelFromString(std::string level);
} // namespace llarp
#endif