mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
1697bf90fe
Compiles with C++17, replaces ghc::filesystem with std::filesystem, nonstd::optional with std::optional, and llarp::string_view with std::string_view.
31 lines
496 B
C++
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
|