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.
lokinet/llarp/util/logging/loglevel.hpp

28 lines
435 B
C++

#pragma once
#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