Typedefs | Enumerations | Functions | Variables
spdlog::level Namespace Reference

Typedefs

using level_hasher = std::hash< int >
 

Enumerations

enum  level_enum {
  trace = SPDLOG_LEVEL_TRACE, debug = SPDLOG_LEVEL_DEBUG, info = SPDLOG_LEVEL_INFO, warn = SPDLOG_LEVEL_WARN,
  err = SPDLOG_LEVEL_ERROR, critical = SPDLOG_LEVEL_CRITICAL, off = SPDLOG_LEVEL_OFF
}
 

Functions

string_view_tto_string_view (spdlog::level::level_enum l) SPDLOG_NOEXCEPT
 
const char * to_short_c_str (spdlog::level::level_enum l) SPDLOG_NOEXCEPT
 
spdlog::level::level_enum from_str (const std::string &name) SPDLOG_NOEXCEPT
 

Variables

static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES
 
static const char * short_level_names [] {"T", "D", "I", "W", "E", "C", "O"}
 

Typedef Documentation

using spdlog::level::level_hasher = typedef std::hash<int>

Definition at line 156 of file common.h.

Enumeration Type Documentation

Enumerator
trace 
debug 
info 
warn 
err 
critical 
off 

Definition at line 111 of file common.h.

112 {
120 };
#define SPDLOG_LEVEL_WARN
Definition: common.h:100
#define SPDLOG_LEVEL_INFO
Definition: common.h:99
#define SPDLOG_LEVEL_TRACE
Definition: common.h:97
#define SPDLOG_LEVEL_DEBUG
Definition: common.h:98
#define SPDLOG_LEVEL_OFF
Definition: common.h:103
#define SPDLOG_LEVEL_ERROR
Definition: common.h:101
#define SPDLOG_LEVEL_CRITICAL
Definition: common.h:102

Function Documentation

spdlog::level::level_enum spdlog::level::from_str ( const std::string name)
inline

Definition at line 142 of file common.h.

143 {
144  int level = 0;
145  for (const auto &level_str : level_string_views)
146  {
147  if (level_str == name)
148  {
149  return static_cast<level::level_enum>(level);
150  }
151  level++;
152  }
153  return level::off;
154 }
static QCString name
Definition: declinfo.cpp:673
const char* spdlog::level::to_short_c_str ( spdlog::level::level_enum  l)
inline

Definition at line 137 of file common.h.

138 {
139  return short_level_names[l];
140 }
static QStrList * l
Definition: config.cpp:1044
static const char * short_level_names[]
Definition: common.h:130
string_view_t& spdlog::level::to_string_view ( spdlog::level::level_enum  l)
inline

Definition at line 132 of file common.h.

133 {
134  return level_string_views[l];
135 }
static QStrList * l
Definition: config.cpp:1044

Variable Documentation

const char* spdlog::level::short_level_names[] {"T", "D", "I", "W", "E", "C", "O"}
static

Definition at line 130 of file common.h.

string_view_t level_string_views [] spdlog::level::SPDLOG_LEVEL_NAMES
static

Definition at line 129 of file common.h.