Refactored logger

This commit is contained in:
gabime
2019-10-18 16:10:30 +03:00
parent f3369677ef
commit fcc809f4f1
4 changed files with 28 additions and 45 deletions

View File

@@ -48,10 +48,6 @@ SPDLOG_INLINE bool backtracer::enabled() const
return enabled_.load(std::memory_order_relaxed);
}
SPDLOG_INLINE backtracer::operator bool() const
{
return enabled();
}
SPDLOG_INLINE void backtracer::push_back(const log_msg &msg)
{

View File

@@ -31,7 +31,6 @@ public:
void enable(size_t size);
void disable();
bool enabled() const;
explicit operator bool() const;
void push_back(const log_msg &msg);
// pop all items in the q and apply the given fun on each of them.