39 static void addMessage(int64_t messageFlag ,
const std::string& message);
41 static bool hasBackend(
const std::string& backendName );
42 static void addBackend(
const std::string& name , std::shared_ptr<LogBackend> backend);
45 static void addMessageType( int64_t messageType ,
const std::string& prefix);
47 template <
class BackendType>
48 static std::shared_ptr<BackendType>
getBackend(
const std::string& name) {
49 auto logger = OpmLog::getLogger();
50 return logger->getBackend<BackendType>(name);
53 template <
class BackendType>
54 static std::shared_ptr<BackendType>
popBackend(
const std::string& name) {
55 auto logger = OpmLog::getLogger();
56 return logger->popBackend<BackendType>(name);
61 static std::shared_ptr<Logger> getLogger();
62 static std::shared_ptr<Logger> m_logger;
static void addMessageType(int64_t messageType, const std::string &prefix)
static bool hasBackend(const std::string &backendName)
static bool enabledMessageType(int64_t messageType)
static std::shared_ptr< BackendType > getBackend(const std::string &name)
Definition: OpmLog.hpp:48
static void addBackend(const std::string &name, std::shared_ptr< LogBackend > backend)
static std::shared_ptr< BackendType > popBackend(const std::string &name)
Definition: OpmLog.hpp:54
static void addMessage(int64_t messageFlag, const std::string &message)
Definition: OpmLog.hpp:37
static bool removeBackend(const std::string &name)