mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
try different apprach to backtracer object
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "spdlog/common.h"
|
||||
#include "spdlog/details/log_msg.h"
|
||||
#include "spdlog/details/backtracer.h"
|
||||
|
||||
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
#include "spdlog/details/os.h"
|
||||
@@ -39,10 +40,6 @@
|
||||
|
||||
namespace spdlog {
|
||||
|
||||
namespace details {
|
||||
class backtracer;
|
||||
}
|
||||
|
||||
class logger
|
||||
{
|
||||
public:
|
||||
@@ -365,7 +362,7 @@ protected:
|
||||
spdlog::level_t level_{level::info};
|
||||
spdlog::level_t flush_level_{level::off};
|
||||
err_handler custom_err_handler_{nullptr};
|
||||
std::shared_ptr<details::backtracer> tracer_;
|
||||
details::backtracer tracer_;
|
||||
|
||||
virtual void sink_it_(const details::log_msg &msg);
|
||||
virtual void flush_();
|
||||
|
Reference in New Issue
Block a user