|
|
@ -20,6 +20,10 @@
|
|
|
|
#include <memory>
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if __cplusplus >= 201703L // C++17
|
|
|
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
|
|
|
|
|
|
|
|
using default_factory = synchronous_factory;
|
|
|
|
using default_factory = synchronous_factory;
|
|
|
@ -50,6 +54,10 @@ SPDLOG_API void initialize_logger(std::shared_ptr<logger> logger);
|
|
|
|
// exist.
|
|
|
|
// exist.
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
#if __cplusplus >= 201703L // C++17
|
|
|
|
|
|
|
|
SPDLOG_API std::shared_ptr<logger> get(std::string_view name);
|
|
|
|
|
|
|
|
SPDLOG_API std::shared_ptr<logger> get(const char *name);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// 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);
|
|
|
|