mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Update spdlog.h
This commit is contained in:
parent
fccb25586f
commit
4cdb159ccb
@ -42,9 +42,8 @@ inline std::shared_ptr<spdlog::logger> create(std::string logger_name, SinkArgs
|
||||
// Useful for initializing manually created loggers with the global settings.
|
||||
//
|
||||
// Example:
|
||||
// auto console_sink = std::make_shared<spdlog::sinks::stdout_sink_mt>();
|
||||
// auto console_logger = std::make_shared<spdlog::logger>("console_logger", console_sink);
|
||||
// spdlog::initialize_logger(console_logger);
|
||||
// auto mylogger = std::make_shared<spdlog::logger>("mylogger", ...);
|
||||
// spdlog::initialize_logger(mylogger);
|
||||
void initialize_logger(std::shared_ptr<logger> logger);
|
||||
|
||||
// Return an existing logger or nullptr if a logger with such name doesn't
|
||||
|
Loading…
Reference in New Issue
Block a user