mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +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.
|
// Useful for initializing manually created loggers with the global settings.
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
// auto console_sink = std::make_shared<spdlog::sinks::stdout_sink_mt>();
|
// auto mylogger = std::make_shared<spdlog::logger>("mylogger", ...);
|
||||||
// auto console_logger = std::make_shared<spdlog::logger>("console_logger", console_sink);
|
// spdlog::initialize_logger(mylogger);
|
||||||
// spdlog::initialize_logger(console_logger);
|
|
||||||
void initialize_logger(std::shared_ptr<logger> logger);
|
void initialize_logger(std::shared_ptr<logger> logger);
|
||||||
|
|
||||||
// Return an existing logger or nullptr if a logger with such name doesn't
|
// Return an existing logger or nullptr if a logger with such name doesn't
|
||||||
|
Loading…
Reference in New Issue
Block a user