|
|
@ -19,6 +19,7 @@
|
|
|
|
#include <functional>
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
|
|
|
|
|
|
|
@ -51,6 +52,9 @@ SPDLOG_API void initialize_logger(std::shared_ptr<logger> logger);
|
|
|
|
// example: spdlog::get("my_logger")->info("hello {}", "world");
|
|
|
|
// example: spdlog::get("my_logger")->info("hello {}", "world");
|
|
|
|
SPDLOG_API std::shared_ptr<logger> get(const std::string &name);
|
|
|
|
SPDLOG_API std::shared_ptr<logger> get(const std::string &name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Return a list with the names of all registered loggers
|
|
|
|
|
|
|
|
SPDLOG_API std::vector<std::string> get_logger_names(void);
|
|
|
|
|
|
|
|
|
|
|
|
// Set global formatter. Each sink in each logger will get a clone of this object
|
|
|
|
// Set global formatter. Each sink in each logger will get a clone of this object
|
|
|
|
SPDLOG_API void set_formatter(std::unique_ptr<spdlog::formatter> formatter);
|
|
|
|
SPDLOG_API void set_formatter(std::unique_ptr<spdlog::formatter> formatter);
|
|
|
|
|
|
|
|
|
|
|
|