Switchboard Extension SDK
Loading...
Searching...
No Matches
LogLevel.hpp
1//
2// LogLevel.hpp
3// SwitchboardSDK
4//
5// Created by Pesti József on 2022. 12. 19..
6//
7
8#pragma once
9
10#include <string>
11
12namespace switchboard {
13
14const std::string LOG_LEVEL_NONE = "none";
15const std::string LOG_LEVEL_ERROR = "error";
16const std::string LOG_LEVEL_WARNING = "warning";
17const std::string LOG_LEVEL_INFO = "info";
18const std::string LOG_LEVEL_DEBUG = "debug";
19const std::string LOG_LEVEL_TRACE = "trace";
20
21enum class LogLevel : int { None = 0, Error = 1, Warning = 2, Info = 3, Debug = 4, Trace = 5 };
22
30LogLevel logLevelFromString(const std::string& stringValue);
31
39std::string logLevelToString(LogLevel logLevel);
40
41}