#include <Logger.hpp>

Public Member Functions

 Logger ()
 
void addMessage (int64_t messageType, const std::string &message) const
 
void addTaggedMessage (int64_t messageType, const std::string &tag, const std::string &message) const
 
bool enabledMessageType (int64_t messageType) const
 
void addMessageType (int64_t messageType, const std::string &prefix)
 
int64_t enabledMessageTypes () const
 
void addBackend (const std::string &name, std::shared_ptr< LogBackend > backend)
 
bool hasBackend (const std::string &name)
 
bool removeBackend (const std::string &name)
 
void removeAllBackends ()
 
template<class BackendType >
std::shared_ptr< BackendType > getBackend (const std::string &name) const
 
template<class BackendType >
std::shared_ptr< BackendType > popBackend (const std::string &name)
 

Static Public Member Functions

static bool enabledDefaultMessageType (int64_t messageType)
 

Constructor & Destructor Documentation

◆ Logger()

Opm::Logger::Logger ( )

Member Function Documentation

◆ addBackend()

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

◆ addMessage()

void Opm::Logger::addMessage ( int64_t  messageType,
const std::string message 
) const

◆ addMessageType()

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

◆ addTaggedMessage()

void Opm::Logger::addTaggedMessage ( int64_t  messageType,
const std::string tag,
const std::string message 
) const

◆ enabledDefaultMessageType()

static bool Opm::Logger::enabledDefaultMessageType ( int64_t  messageType)
static

◆ enabledMessageType()

bool Opm::Logger::enabledMessageType ( int64_t  messageType) const

◆ enabledMessageTypes()

int64_t Opm::Logger::enabledMessageTypes ( ) const

◆ getBackend()

template<class BackendType >
std::shared_ptr< BackendType > Opm::Logger::getBackend ( const std::string name) const
inline

References name.

◆ hasBackend()

bool Opm::Logger::hasBackend ( const std::string name)

◆ popBackend()

template<class BackendType >
std::shared_ptr< BackendType > Opm::Logger::popBackend ( const std::string name)
inline

References name, and removeBackend().

◆ removeAllBackends()

void Opm::Logger::removeAllBackends ( )

◆ removeBackend()

bool Opm::Logger::removeBackend ( const std::string name)

Referenced by popBackend().


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