spdlog
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
spdlog::level Namespace Reference

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 ,
  n_levels
}
 

Functions

SPDLOG_INLINE const string_view_tto_string_view (spdlog::level::level_enum l) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE const charto_short_c_str (spdlog::level::level_enum l) SPDLOG_NOEXCEPT
 
SPDLOG_INLINE 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[] SPDLOG_SHORT_LEVEL_NAMES
 

Enumeration Type Documentation

◆ level_enum

Enumerator
trace 
debug 
info 
warn 
err 
critical 
off 
n_levels 

Definition at line 161 of file common.h.

Function Documentation

◆ from_str()

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

Definition at line 33 of file common-inl.h.

◆ to_short_c_str()

SPDLOG_API const char * spdlog::level::to_short_c_str ( spdlog::level::level_enum  l)

Definition at line 28 of file common-inl.h.

◆ to_string_view()

SPDLOG_API const string_view_t & spdlog::level::to_string_view ( spdlog::level::level_enum  l)

Definition at line 23 of file common-inl.h.

Variable Documentation

◆ SPDLOG_LEVEL_NAMES

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

Definition at line 19 of file common-inl.h.

◆ SPDLOG_SHORT_LEVEL_NAMES

const char* short_level_names [] spdlog::level::SPDLOG_SHORT_LEVEL_NAMES
static

Definition at line 21 of file common-inl.h.