Removed virtual clone and dtor from logger

This commit is contained in:
gabime 2024-12-07 19:03:57 +02:00
parent 92d06834cf
commit 98ffe77328

View File

@ -60,7 +60,7 @@ public:
logger(const logger &other) noexcept; logger(const logger &other) noexcept;
logger(logger &&other) noexcept; logger(logger &&other) noexcept;
virtual ~logger() = default; ~logger() = default;
template <typename... Args> template <typename... Args>
void log(source_loc loc, level lvl, format_string_t<Args...> fmt, Args &&...args) { void log(source_loc loc, level lvl, format_string_t<Args...> fmt, Args &&...args) {
@ -168,7 +168,7 @@ public:
void set_error_handler(err_handler); void set_error_handler(err_handler);
// create new logger with same sinks and configuration. // create new logger with same sinks and configuration.
virtual std::shared_ptr<logger> clone(std::string logger_name); std::shared_ptr<logger> clone(std::string logger_name);
private: private:
std::string name_; std::string name_;