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

Go to the source code of this file.

Namespaces

namespace  spdlog
 

Macros

#define SPDLOG_VERSION   "0.16.2"
 
#define SPDLOG_TRACE(logger, ...)
 
#define SPDLOG_DEBUG(logger, ...)
 

Functions

std::shared_ptr< loggerspdlog::get (const std::string &name)
 
void spdlog::set_pattern (const std::string &format_string)
 
void spdlog::set_formatter (formatter_ptr f)
 
void spdlog::set_level (level::level_enum log_level)
 
void spdlog::set_error_handler (log_err_handler)
 
void spdlog::set_async_mode (size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
void spdlog::set_sync_mode ()
 
std::shared_ptr< loggerspdlog::basic_logger_mt (const std::string &logger_name, const filename_t &filename, bool truncate=false)
 
std::shared_ptr< loggerspdlog::basic_logger_st (const std::string &logger_name, const filename_t &filename, bool truncate=false)
 
std::shared_ptr< loggerspdlog::rotating_logger_mt (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files)
 
std::shared_ptr< loggerspdlog::rotating_logger_st (const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files)
 
std::shared_ptr< loggerspdlog::daily_logger_mt (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0)
 
std::shared_ptr< loggerspdlog::daily_logger_st (const std::string &logger_name, const filename_t &filename, int hour=0, int minute=0)
 
std::shared_ptr< loggerspdlog::stdout_logger_mt (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stdout_logger_st (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stderr_logger_mt (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stderr_logger_st (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stdout_color_mt (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stdout_color_st (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stderr_color_mt (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::stderr_color_st (const std::string &logger_name)
 
std::shared_ptr< loggerspdlog::create (const std::string &logger_name, const sink_ptr &sink)
 
std::shared_ptr< loggerspdlog::create (const std::string &logger_name, sinks_init_list sinks)
 
template<class It >
std::shared_ptr< loggerspdlog::create (const std::string &logger_name, const It &sinks_begin, const It &sinks_end)
 
template<typename Sink , typename... Args>
std::shared_ptr< spdlog::loggerspdlog::create (const std::string &logger_name, Args...)
 
std::shared_ptr< loggerspdlog::create_async (const std::string &logger_name, const sink_ptr &sink, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
std::shared_ptr< loggerspdlog::create_async (const std::string &logger_name, sinks_init_list sinks, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
template<class It >
std::shared_ptr< loggerspdlog::create_async (const std::string &logger_name, const It &sinks_begin, const It &sinks_end, size_t queue_size, const async_overflow_policy overflow_policy=async_overflow_policy::block_retry, const std::function< void()> &worker_warmup_cb=nullptr, const std::chrono::milliseconds &flush_interval_ms=std::chrono::milliseconds::zero(), const std::function< void()> &worker_teardown_cb=nullptr)
 
void spdlog::register_logger (std::shared_ptr< logger > logger)
 
void spdlog::apply_all (std::function< void(std::shared_ptr< logger >)> fun)
 
void spdlog::drop (const std::string &name)
 
void spdlog::drop_all ()
 

Macro Definition Documentation

◆ SPDLOG_DEBUG

#define SPDLOG_DEBUG ( logger,
... )

Definition at line 182 of file spdlog.h.

◆ SPDLOG_TRACE

#define SPDLOG_TRACE ( logger,
... )

Definition at line 176 of file spdlog.h.

◆ SPDLOG_VERSION

#define SPDLOG_VERSION   "0.16.2"

Definition at line 10 of file spdlog.h.