Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LogCentral Class Reference
+ Inheritance diagram for inviwo::LogCentral:

Public Member Functions

void setVerbosity (LogVerbosity verbosity)
 
LogVerbosity getVerbosity ()
 
void registerLogger (std::weak_ptr< Logger > logger)
 Register logger for use. LogCentral does not take ownership of registered loggers.
 
virtual void log (std::string_view source, LogLevel level, LogAudience audience, std::string_view file, std::string_view function, int line, std::string_view msg) override
 
virtual void logProcessor (Processor *processor, LogLevel level, LogAudience audience, std::string_view msg, std::string_view file="", std::string_view function="", int line=0) override
 
virtual void logNetwork (LogLevel level, LogAudience audience, std::string_view msg, std::string_view file="", std::string_view function="", int line=0) override
 
virtual void logAssertion (std::string_view file, std::string_view function, int line, std::string_view msg) override
 
void setLogStacktrace (const bool &logStacktrace=true)
 
bool getLogStacktrace () const
 
void setMessageBreakLevel (MessageBreakLevel level)
 
MessageBreakLevel getMessageBreakLevel () const
 
- Public Member Functions inherited from inviwo::Singleton< LogCentral >
 Singleton (const Singleton &)=delete
 
void operator= (const Singleton &)=delete
 
- Public Member Functions inherited from inviwo::Logger

Additional Inherited Members

- Static Public Member Functions inherited from inviwo::Singleton< LogCentral >
static void init ()
 
static void init (LogCentral *instance)
 
static LogCentralgetPtr ()
 
static void deleteInstance ()
 
static bool isInitialized ()
 

Member Function Documentation

◆ log()

virtual void inviwo::LogCentral::log ( std::string_view source,
LogLevel level,
LogAudience audience,
std::string_view file,
std::string_view function,
int line,
std::string_view msg )
overridevirtual

Implements inviwo::Logger.

◆ logAssertion()

virtual void inviwo::LogCentral::logAssertion ( std::string_view file,
std::string_view function,
int line,
std::string_view msg )
overridevirtual

Reimplemented from inviwo::Logger.

◆ logNetwork()

virtual void inviwo::LogCentral::logNetwork ( LogLevel level,
LogAudience audience,
std::string_view msg,
std::string_view file = "",
std::string_view function = "",
int line = 0 )
overridevirtual

Reimplemented from inviwo::Logger.

◆ logProcessor()

virtual void inviwo::LogCentral::logProcessor ( Processor * processor,
LogLevel level,
LogAudience audience,
std::string_view msg,
std::string_view file = "",
std::string_view function = "",
int line = 0 )
overridevirtual

Reimplemented from inviwo::Logger.

◆ registerLogger()

void inviwo::LogCentral::registerLogger ( std::weak_ptr< Logger > logger)

Register logger for use. LogCentral does not take ownership of registered loggers.

Parameters
loggerLogger to register.

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