Summary: Hardcoded query infrastructure - first concrete version - USEFUL FOR: POCs & pilots Test Plan: manual + jenkins Reviewers: sale, florijan Reviewed By: florijan Subscribers: pullbot, buda Differential Revision: https://phabricator.memgraph.io/D45
30 lines
476 B
C++
30 lines
476 B
C++
#pragma once
|
|
|
|
#include "logging/default.hpp"
|
|
|
|
/**
|
|
* @class Loggable
|
|
*
|
|
* @brief Base class that could be used in all classed which need a logging
|
|
* functionality.
|
|
*/
|
|
class Loggable
|
|
{
|
|
public:
|
|
/**
|
|
* Sets logger name.
|
|
*/
|
|
Loggable(const std::string &name)
|
|
: logger(logging::log->logger(name))
|
|
{
|
|
}
|
|
|
|
virtual ~Loggable() {}
|
|
|
|
protected:
|
|
/**
|
|
* Logger instance that can be used only from derived classes.
|
|
*/
|
|
Logger logger;
|
|
};
|