45 constexpr static int defaultDebugVerbosityLevel = 1;
47 static void addMessage(int64_t messageFlag ,
const std::string& message);
48 static void addTaggedMessage(int64_t messageFlag,
const std::string& tag,
const std::string& message);
50 static void info(
const std::string& message);
51 static void warning(
const std::string& message);
52 static void error(
const std::string& message);
53 static void problem(
const std::string& message);
54 static void bug(
const std::string& message);
55 static void debug(
const std::string& message,
const int verbosity_level = defaultDebugVerbosityLevel);
56 static void note(
const std::string& message);
58 static void info(
const std::string& tag,
const std::string& message);
59 static void warning(
const std::string& tag,
const std::string& message);
60 static void error(
const std::string& tag,
const std::string& message);
61 static void problem(
const std::string& tag,
const std::string& message);
62 static void bug(
const std::string& tag,
const std::string& message);
63 static void debug(
const std::string& tag,
const std::string& message);
64 static void note(
const std::string& tag,
const std::string& message);
66 static bool hasBackend(
const std::string& backendName );
67 static void addBackend(
const std::string& name , std::shared_ptr<LogBackend> backend);
68 static bool removeBackend(
const std::string& name);
69 static void removeAllBackends();
70 static bool enabledMessageType( int64_t messageType );
71 static void addMessageType( int64_t messageType ,
const std::string&
prefix);
74 static int getDebugVerbosityLevel() {
return debug_verbosity_level_; }
75 static void setDebugVerbosityLevel(
const int verbosity_level) { debug_verbosity_level_ = verbosity_level; }
84 const bool use_color_coding =
true,
85 const int message_limit = 10);
87 template <
class BackendType>
88 static std::shared_ptr<BackendType> getBackend(
const std::string& name) {
89 auto logger = getLogger();
90 return logger->getBackend<BackendType>(name);
93 template <
class BackendType>
94 static std::shared_ptr<BackendType> popBackend(
const std::string& name) {
95 auto logger = getLogger();
96 return logger->popBackend<BackendType>(name);
100 static bool stdoutIsTerminal();
116 static bool setLogger(std::shared_ptr<Logger> logger);
119#ifdef EMBEDDED_PYTHON
120 friend class PyRunModule;
122 static int debug_verbosity_level_;
123 static std::shared_ptr<Logger> getLogger();
124 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:221
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30