45 static void addMessage(int64_t messageFlag ,
const std::string& message);
46 static void addTaggedMessage(int64_t messageFlag,
const std::string& tag,
const std::string& message);
48 static void info(
const std::string& message);
49 static void warning(
const std::string& message);
50 static void error(
const std::string& message);
51 static void problem(
const std::string& message);
52 static void bug(
const std::string& message);
53 static void debug(
const std::string& message);
54 static void note(
const std::string& message);
56 static void info(
const std::string& tag,
const std::string& message);
57 static void warning(
const std::string& tag,
const std::string& message);
58 static void error(
const std::string& tag,
const std::string& message);
59 static void problem(
const std::string& tag,
const std::string& message);
60 static void bug(
const std::string& tag,
const std::string& message);
61 static void debug(
const std::string& tag,
const std::string& message);
62 static void note(
const std::string& tag,
const std::string& message);
64 static bool hasBackend(
const std::string& backendName );
65 static void addBackend(
const std::string& name , std::shared_ptr<LogBackend> backend);
66 static bool removeBackend(
const std::string& name);
67 static void removeAllBackends();
68 static bool enabledMessageType( int64_t messageType );
69 static void addMessageType( int64_t messageType ,
const std::string& prefix);
78 const bool use_color_coding =
true,
79 const int message_limit = 10);
81 template <
class BackendType>
82 static std::shared_ptr<BackendType> getBackend(
const std::string& name) {
83 auto logger = getLogger();
84 return logger->getBackend<BackendType>(name);
87 template <
class BackendType>
88 static std::shared_ptr<BackendType> popBackend(
const std::string& name) {
89 auto logger = getLogger();
90 return logger->popBackend<BackendType>(name);
94 static bool stdoutIsTerminal();
110 static bool setLogger(std::shared_ptr<Logger> logger);
113#ifdef EMBEDDED_PYTHON
114 friend class PyRunModule;
116 static std::shared_ptr<Logger> getLogger();
117 static std::shared_ptr<Logger> m_logger;
static void setupSimpleDefaultLogging(const bool use_prefix=true, const bool use_color_coding=true, const int message_limit=10)
Create a basic logging setup that will send all log messages to standard output.
Definition OpmLog.cpp:218
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30