Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
common.h File Reference
#include <string>
#include <initializer_list>
#include <chrono>
#include <memory>
#include <atomic>
#include <exception>
#include <functional>
#include "details/null_mutex.h"
#include "fmt/fmt.h"
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  spdlog::spdlog_ex
 

Namespaces

namespace  spdlog
 
namespace  spdlog::sinks
 
namespace  spdlog::level
 
namespace  spdlog::details
 
namespace  spdlog::details::os
 

Macros

#define SPDLOG_NOEXCEPT   noexcept
 
#define SPDLOG_CONSTEXPR   constexpr
 
#define SPDLOG_FINAL   final
 
#define SPDLOG_DEPRECATED
 
#define SPDLOG_LEVEL_NAMES   { "trace", "debug", "info", "warning", "error", "critical", "off" }
 

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::formatter_ptr = std::shared_ptr<spdlog::formatter>
 
using spdlog::level_t = std::atomic<int>
 
using spdlog::log_err_handler = std::function<void(const std::string &err_msg)>
 
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 class  spdlog::async_overflow_policy { spdlog::block_retry , spdlog::discard_log_msg }
 
enum class  spdlog::pattern_time_type { spdlog::local , spdlog::utc }
 

Functions

const char * spdlog::level::to_str (spdlog::level::level_enum l)
 
const char * spdlog::level::to_short_str (spdlog::level::level_enum l)
 
std::string spdlog::details::os::errno_str (int err_num)
 

Variables

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

Macro Definition Documentation

◆ SPDLOG_CONSTEXPR

#define SPDLOG_CONSTEXPR   constexpr

Definition at line 29 of file common.h.

◆ SPDLOG_DEPRECATED

#define SPDLOG_DEPRECATED

Definition at line 44 of file common.h.

◆ SPDLOG_FINAL

#define SPDLOG_FINAL   final

Definition at line 36 of file common.h.

◆ SPDLOG_LEVEL_NAMES

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

Definition at line 86 of file common.h.

◆ SPDLOG_NOEXCEPT

#define SPDLOG_NOEXCEPT   noexcept

Definition at line 28 of file common.h.