mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
512 B
C++
31 lines
512 B
C++
#ifndef LLARP_UTIL_LOG_LEVEL_HPP
|
|
#define LLARP_UTIL_LOG_LEVEL_HPP
|
|
#include <string>
|
|
#include <nonstd/optional.hpp>
|
|
|
|
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);
|
|
|
|
nonstd::optional< LogLevel >
|
|
LogLevelFromString(std::string level);
|
|
|
|
} // namespace llarp
|
|
|
|
#endif
|