Livox SDK API  V2.2.0
common.h File Reference
#include "spdlog/tweakme.h"
#include <atomic>
#include <chrono>
#include <functional>
#include <initializer_list>
#include <memory>
#include <stdexcept>
#include <string>
#include <cstring>
#include <type_traits>
#include <unordered_map>
#include "spdlog/details/null_mutex.h"
#include "spdlog/fmt/fmt.h"

Go to the source code of this file.

Classes

class  spdlog::spdlog_ex
 
struct  spdlog::source_loc
 

Namespaces

 spdlog
 
 spdlog::sinks
 
 spdlog::level
 
 spdlog::details
 

Macros

#define SPDLOG_NOEXCEPT   noexcept
 
#define SPDLOG_CONSTEXPR   constexpr
 
#define SPDLOG_DEPRECATED
 
#define SPDLOG_STRRCHR(str, sep)   strrchr(str, sep)
 
#define SPDLOG_FILE_BASENAME(file)   SPDLOG_STRRCHR("/" file, '/') + 1
 
#define SPDLOG_FUNCTION   __FUNCTION__
 
#define SPDLOG_LEVEL_TRACE   0
 
#define SPDLOG_LEVEL_DEBUG   1
 
#define SPDLOG_LEVEL_INFO   2
 
#define SPDLOG_LEVEL_WARN   3
 
#define SPDLOG_LEVEL_ERROR   4
 
#define SPDLOG_LEVEL_CRITICAL   5
 
#define SPDLOG_LEVEL_OFF   6
 
#define SPDLOG_ACTIVE_LEVEL   SPDLOG_LEVEL_INFO
 
#define SPDLOG_LEVEL_NAMES
 
#define SPDLOG_SHORT_LEVEL_NAMES   {"T", "D", "I", "W", "E", "C", "O"}
 

Typedefs

using spdlog::log_clock = std::chrono::system_clock
 
using spdlog::sink_ptr = std::shared_ptr< sinks::sink >
 
using spdlog::sinks_init_list = std::initializer_list< sink_ptr >
 
using spdlog::log_err_handler = std::function< void(const std::string &err_msg)>
 
using spdlog::string_view_t = fmt::string_view
 
using spdlog::level_t = std::atomic< int >
 
using spdlog::level::level_hasher = std::hash< int >
 
using spdlog::filename_t = std::string
 

Enumerations

enum  spdlog::level::level_enum {
  spdlog::level::trace = 0, spdlog::level::debug = 1, spdlog::level::info = 2, spdlog::level::warn = 3,
  spdlog::level::err = 4, spdlog::level::critical = 5, spdlog::level::off = 6
}
 
enum  spdlog::pattern_time_type { spdlog::pattern_time_type::local, spdlog::pattern_time_type::utc }
 

Functions

string_view_t & spdlog::level::to_string_view (spdlog::level::level_enum l) noexcept
 
const char * spdlog::level::to_short_c_str (spdlog::level::level_enum l) noexcept
 
spdlog::level::level_enum spdlog::level::from_str (const std::string &name) noexcept
 
template<typename T , typename... Args>
std::unique_ptr< T > spdlog::details::make_unique (Args &&...args)
 

Variables

static string_view_t spdlog::level::level_string_views [] { "trace", "debug", "info", "warning", "error", "critical", "off" }
 
static const char * spdlog::level::short_level_names [] {"T", "D", "I", "W", "E", "C", "O"}
 

Macro Definition Documentation

#define SPDLOG_ACTIVE_LEVEL   SPDLOG_LEVEL_INFO

Definition at line 106 of file common.h.

#define SPDLOG_CONSTEXPR   constexpr

Definition at line 36 of file common.h.

#define SPDLOG_DEPRECATED

Definition at line 44 of file common.h.

#define SPDLOG_FILE_BASENAME (   file)    SPDLOG_STRRCHR("/" file, '/') + 1

Definition at line 64 of file common.h.

#define SPDLOG_FUNCTION   __FUNCTION__

Definition at line 68 of file common.h.

#define SPDLOG_LEVEL_CRITICAL   5

Definition at line 102 of file common.h.

#define SPDLOG_LEVEL_DEBUG   1

Definition at line 98 of file common.h.

#define SPDLOG_LEVEL_ERROR   4

Definition at line 101 of file common.h.

#define SPDLOG_LEVEL_INFO   2

Definition at line 99 of file common.h.

#define SPDLOG_LEVEL_NAMES
Value:
{ \
"trace", "debug", "info", "warning", "error", "critical", "off" \
}

Definition at line 123 of file common.h.

#define SPDLOG_LEVEL_OFF   6

Definition at line 103 of file common.h.

#define SPDLOG_LEVEL_TRACE   0

Definition at line 97 of file common.h.

#define SPDLOG_LEVEL_WARN   3

Definition at line 100 of file common.h.

#define SPDLOG_NOEXCEPT   noexcept

Definition at line 35 of file common.h.

#define SPDLOG_SHORT_LEVEL_NAMES   {"T", "D", "I", "W", "E", "C", "O"}

Definition at line 131 of file common.h.

#define SPDLOG_STRRCHR (   str,
  sep 
)    strrchr(str, sep)

Definition at line 58 of file common.h.