Namespace spdlog

Description

No description yet.

Namespaces

details
level
sinks

Classes

formatter
logger

Mentioned in

spdlog_exLog exception
SPDLOG_FINAL

Functions

apply_allApply a user defined function on all registered loggers Example: spdlog::apply_all(& {l->flush();});
basic_logger_mtCreate multi/single threaded simple file logger.
basic_logger_st

Mentioned in

create overloadCreate and register a logger with a single sink.
create overloadCreate and register a logger with multiple sinks.
create overloadCreate and register a logger with templated sink type Example: spdlog::create<daily_file_sink_st>("mylog", "dailylog_filename");
create_async overloadCreate and register an async logger with a single sink.
create_async overloadCreate and register an async logger with multiple sinks.
daily_logger_mtCreate file logger which creates new file at midnight):
daily_logger_st

Mentioned in

dropDrop the reference to the given logger.
drop_allDrop all references from the registry.
flush_onSet global flush level
getReturn an existing logger or nullptr if a logger with such name doesn't exist
register_loggerRegister the given logger with the given name.
rotating_logger_mtCreate multi/single threaded rotating file logger.
rotating_logger_st
set_async_modeTurn on async mode (off by default) and set the queue size for each async_logger
set_error_handlerSet global error handler
set_formatter

Mentioned in

set_levelSet global logging level
set_patternSet global formatting example: spdlog::set_pattern("%Y-%m-%d %H:%M:%S.%e %l : %v");
set_sync_modeTurn off async mode.
stderr_color_mt
stderr_color_st

Mentioned in

stderr_logger_mt
stderr_logger_st

Mentioned in

stdout_color_mtCreate and register colored stdout/stderr loggers
stdout_color_st
stdout_logger_mtCreate and register stdout/stderr loggers
stdout_logger_st

Enums

async_overflow_policyAsync overflow policy - block by default.
pattern_time_typePattern time - specific time getting to use for pattern_formatter

Typedefs

Typedefs (common.h)

using log_clock = std::chrono::system_clock

using sink_ptr = std::shared_ptr< sinks::sink >

Mentioned in:

using sinks_init_list = std::initializer_list< sink_ptr >

Mentioned in:

using formatter_ptr = std::shared_ptr< spdlog::formatter >

using level_t = std::atomic< int >

using log_err_handler = std::function< void(const std::string &err_msg)>

Mentioned in:

using filename_t = std::string

wchar support for windows file names (SPDLOG_WCHAR_FILENAMES must be defined)

Source

Line 26 in include/spdlog/async_logger.h.






Add Discussion

Log in to comment