mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update spdlog.h
This commit is contained in:
parent
01ef3d3114
commit
b18d235b63
@ -20,15 +20,13 @@
|
|||||||
namespace spdlog
|
namespace spdlog
|
||||||
{
|
{
|
||||||
|
|
||||||
// Return an existing logger or nullptr if a logger with such name doesn't exist.
|
|
||||||
// Examples:
|
|
||||||
//
|
//
|
||||||
// spdlog::get("mylog")->info("Hello");
|
// Return an existing logger or nullptr if a logger with such name doesn't exist.
|
||||||
// auto logger = spdlog::get("mylog");
|
// example: spdlog::get("my_logger")->info("hello {}", "world");
|
||||||
// logger.info("This is another message" , x, y, z);
|
//
|
||||||
// logger.info() << "This is another message" << x << y << z;
|
|
||||||
std::shared_ptr<logger> get(const std::string& name);
|
std::shared_ptr<logger> get(const std::string& name);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set global formatting
|
// Set global formatting
|
||||||
// example: spdlog::set_pattern("%Y-%m-%d %H:%M:%S.%e %l : %v");
|
// example: spdlog::set_pattern("%Y-%m-%d %H:%M:%S.%e %l : %v");
|
||||||
|
Loading…
Reference in New Issue
Block a user