Opm::OpmLog Class Reference

#include <OpmLog.hpp>

Static Public Member Functions

static void addMessage (int64_t messageFlag, const std::string &message)
 
static void addTaggedMessage (int64_t messageFlag, const std::string &tag, const std::string &message)
 
static void info (const std::string &message)
 
static void warning (const std::string &message)
 
static void error (const std::string &message)
 
static void problem (const std::string &message)
 
static void bug (const std::string &message)
 
static void debug (const std::string &message)
 
static void note (const std::string &message)
 
static void info (const std::string &tag, const std::string &message)
 
static void warning (const std::string &tag, const std::string &message)
 
static void error (const std::string &tag, const std::string &message)
 
static void problem (const std::string &tag, const std::string &message)
 
static void bug (const std::string &tag, const std::string &message)
 
static void debug (const std::string &tag, const std::string &message)
 
static void note (const std::string &tag, const std::string &message)
 
static bool hasBackend (const std::string &backendName)
 
static void addBackend (const std::string &name, std::shared_ptr< LogBackend > backend)
 
static bool removeBackend (const std::string &name)
 
static void removeAllBackends ()
 
static bool enabledMessageType (int64_t messageType)
 
static void addMessageType (int64_t messageType, const std::string &prefix)
 
static void setupSimpleDefaultLogging (const bool use_prefix=true, const bool use_color_coding=true, const int message_limit=10)
 
template<class BackendType >
static std::shared_ptr< BackendType > getBackend (const std::string &name)
 
template<class BackendType >
static std::shared_ptr< BackendType > popBackend (const std::string &name)
 

Member Function Documentation

◆ addBackend()

static void Opm::OpmLog::addBackend ( const std::string name,
std::shared_ptr< LogBackend backend 
)
static

◆ addMessage()

static void Opm::OpmLog::addMessage ( int64_t  messageFlag,
const std::string message 
)
static

◆ addMessageType()

static void Opm::OpmLog::addMessageType ( int64_t  messageType,
const std::string prefix 
)
static

◆ addTaggedMessage()

static void Opm::OpmLog::addTaggedMessage ( int64_t  messageFlag,
const std::string tag,
const std::string message 
)
static

◆ bug() [1/2]

static void Opm::OpmLog::bug ( const std::string message)
static

◆ bug() [2/2]

static void Opm::OpmLog::bug ( const std::string tag,
const std::string message 
)
static

◆ debug() [1/2]

static void Opm::OpmLog::debug ( const std::string message)
static

◆ debug() [2/2]

static void Opm::OpmLog::debug ( const std::string tag,
const std::string message 
)
static

◆ enabledMessageType()

static bool Opm::OpmLog::enabledMessageType ( int64_t  messageType)
static

◆ error() [1/2]

static void Opm::OpmLog::error ( const std::string message)
static

◆ error() [2/2]

static void Opm::OpmLog::error ( const std::string tag,
const std::string message 
)
static

◆ getBackend()

template<class BackendType >
static std::shared_ptr< BackendType > Opm::OpmLog::getBackend ( const std::string name)
inlinestatic

References name.

◆ hasBackend()

static bool Opm::OpmLog::hasBackend ( const std::string backendName)
static

◆ info() [1/2]

static void Opm::OpmLog::info ( const std::string message)
static

◆ info() [2/2]

static void Opm::OpmLog::info ( const std::string tag,
const std::string message 
)
static

◆ note() [1/2]

static void Opm::OpmLog::note ( const std::string message)
static

◆ note() [2/2]

static void Opm::OpmLog::note ( const std::string tag,
const std::string message 
)
static

◆ popBackend()

template<class BackendType >
static std::shared_ptr< BackendType > Opm::OpmLog::popBackend ( const std::string name)
inlinestatic

References name.

◆ problem() [1/2]

static void Opm::OpmLog::problem ( const std::string message)
static

◆ problem() [2/2]

static void Opm::OpmLog::problem ( const std::string tag,
const std::string message 
)
static

◆ removeAllBackends()

static void Opm::OpmLog::removeAllBackends ( )
static

◆ removeBackend()

static bool Opm::OpmLog::removeBackend ( const std::string name)
static

◆ setupSimpleDefaultLogging()

static void Opm::OpmLog::setupSimpleDefaultLogging ( const bool  use_prefix = true,
const bool  use_color_coding = true,
const int  message_limit = 10 
)
static

Create a basic logging setup that will send all log messages to standard output.

By default category prefixes will be printed (i.e. Error: or Warning:), color coding will be used, and a maximum of 10 messages with the same tag will be printed. These settings can be controlled by the function parameters.

◆ warning() [1/2]

static void Opm::OpmLog::warning ( const std::string message)
static

◆ warning() [2/2]

static void Opm::OpmLog::warning ( const std::string tag,
const std::string message 
)
static

The documentation for this class was generated from the following file: