42 static void addMessage(int64_t messageFlag ,
const std::string& message);
43 static void addTaggedMessage(int64_t messageFlag,
const std::string& tag,
const std::string& message);
45 static void info(
const std::string& message);
46 static void warning(
const std::string& message);
47 static void error(
const std::string& message);
48 static void problem(
const std::string& message);
49 static void bug(
const std::string& message);
50 static void debug(
const std::string& message);
51 static void note(
const std::string& message);
53 static void info(
const std::string& tag,
const std::string& message);
54 static void warning(
const std::string& tag,
const std::string& message);
55 static void error(
const std::string& tag,
const std::string& message);
56 static void problem(
const std::string& tag,
const std::string& message);
57 static void bug(
const std::string& tag,
const std::string& message);
58 static void debug(
const std::string& tag,
const std::string& message);
59 static void note(
const std::string& tag,
const std::string& message);
61 static bool hasBackend(
const std::string& backendName );
62 static void addBackend(
const std::string& name , std::shared_ptr<LogBackend> backend);
63 static bool removeBackend(
const std::string& name);
64 static void removeAllBackends();
65 static bool enabledMessageType( int64_t messageType );
66 static void addMessageType( int64_t messageType ,
const std::string& prefix);
75 const bool use_color_coding =
true,
76 const int message_limit = 10);
78 template <
class BackendType>
79 static std::shared_ptr<BackendType> getBackend(
const std::string& name) {
80 auto logger = getLogger();
81 return logger->getBackend<BackendType>(name);
84 template <
class BackendType>
85 static std::shared_ptr<BackendType> popBackend(
const std::string& name) {
86 auto logger = getLogger();
87 return logger->popBackend<BackendType>(name);
91 static bool stdoutIsTerminal();
94 static std::shared_ptr<Logger> getLogger();
95 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:208
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30