memgraph/include/logging/loggable.hpp

15 lines
211 B
C++

#pragma once
#include "logging/default.hpp"
class Loggable
{
public:
Loggable(const std::string& name) : logger(logging::log->logger(name)) {}
virtual ~Loggable() {}
protected:
Logger logger;
};