WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
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"
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
 
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
 

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 = SPDLOG_LEVEL_TRACE, spdlog::level::debug = SPDLOG_LEVEL_DEBUG, spdlog::level::info = SPDLOG_LEVEL_INFO, spdlog::level::warn = SPDLOG_LEVEL_WARN,
  spdlog::level::err = SPDLOG_LEVEL_ERROR, spdlog::level::critical = SPDLOG_LEVEL_CRITICAL, spdlog::level::off = SPDLOG_LEVEL_OFF
}
 
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) SPDLOG_NOEXCEPT
 
const char * spdlog::level::to_short_c_str (spdlog::level::level_enum l) SPDLOG_NOEXCEPT
 
spdlog::level::level_enum spdlog::level::from_str (const std::string &name) SPDLOG_NOEXCEPT
 
template<typename T , typename... Args>
std::unique_ptr< T > spdlog::details::make_unique (Args &&... args)
 

Macro Definition Documentation

◆ SPDLOG_ACTIVE_LEVEL

#define SPDLOG_ACTIVE_LEVEL   SPDLOG_LEVEL_INFO

Definition at line 106 of file common.h.

◆ SPDLOG_CONSTEXPR

#define SPDLOG_CONSTEXPR   constexpr

Definition at line 36 of file common.h.

◆ SPDLOG_DEPRECATED

#define SPDLOG_DEPRECATED

Definition at line 44 of file common.h.

◆ SPDLOG_FILE_BASENAME

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

Definition at line 64 of file common.h.

◆ SPDLOG_FUNCTION

#define SPDLOG_FUNCTION   __FUNCTION__

Definition at line 68 of file common.h.

◆ SPDLOG_LEVEL_CRITICAL

#define SPDLOG_LEVEL_CRITICAL   5

Definition at line 102 of file common.h.

◆ SPDLOG_LEVEL_DEBUG

#define SPDLOG_LEVEL_DEBUG   1

Definition at line 98 of file common.h.

◆ SPDLOG_LEVEL_ERROR

#define SPDLOG_LEVEL_ERROR   4

Definition at line 101 of file common.h.

◆ SPDLOG_LEVEL_INFO

#define SPDLOG_LEVEL_INFO   2

Definition at line 99 of file common.h.

◆ SPDLOG_LEVEL_NAMES

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

Definition at line 123 of file common.h.

◆ SPDLOG_LEVEL_OFF

#define SPDLOG_LEVEL_OFF   6

Definition at line 103 of file common.h.

◆ SPDLOG_LEVEL_TRACE

#define SPDLOG_LEVEL_TRACE   0

Definition at line 97 of file common.h.

◆ SPDLOG_LEVEL_WARN

#define SPDLOG_LEVEL_WARN   3

Definition at line 100 of file common.h.

◆ SPDLOG_NOEXCEPT

#define SPDLOG_NOEXCEPT   noexcept

Definition at line 35 of file common.h.

◆ SPDLOG_STRRCHR

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

Definition at line 58 of file common.h.