Public Member Functions | List of all members
ConsoleLogger Class Reference

A class that is used to log messages to the console. More...

#include <consolelogger.h>

Inheritance diagram for ConsoleLogger:
Inheritance graph
[legend]

Public Member Functions

 ConsoleLogger (JournalLogLevel logLevel, JournalLogLevel errLevel)
 Constructs a ConsoleLogger. More...
 
void log (JournalLogLevel level, char const *file, int line, char const *function, std::string const &msg) override
 Write a log line to the console. More...
 
- Public Member Functions inherited from AdditionalLoggerBase
 AdditionalLoggerBase (JournalLogLevel initialLogLevel=JLL_Alert)
 Constructs an AdditionalLoggerBase. More...
 
JournalLogLevel debugLevel () const override
 
JournalLogLevel logLevel () const override
 
bool logLevel (JournalLogLevel level) const override
 
void logNoDecoration (JournalLogLevel level, char const *file, int line, char const *function, std::string const &msg) override
 Write line to the log without decoration (timestamp, thread) More...
 
void setDebugLevel (JournalLogLevel level) override
 Set the current debug log level. More...
 
void setLogLevel (JournalLogLevel level) override
 Set the current log level. More...
 
- Public Member Functions inherited from AbstractAdditionalLogger
virtual ~AbstractAdditionalLogger ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from AdditionalLoggerBase
virtual void onDebugLevelChanged (JournalLogLevel newLevel, JournalLogLevel oldLevel)
 Called when the debug log level changes This can be overridden in derived classes. More...
 
virtual void onLogLevelChanged (JournalLogLevel newLevel, JournalLogLevel oldLevel)
 Called when the log level changes This can be overridden in derived classes. More...
 

Detailed Description

A class that is used to log messages to the console.

Definition at line 70 of file consolelogger.h.

Constructor & Destructor Documentation

◆ ConsoleLogger()

ConsoleLogger::ConsoleLogger ( JournalLogLevel  logLevel,
JournalLogLevel  errLevel 
)

Constructs a ConsoleLogger.

Parameters
[in]logLevelThe initial log level to use as log level for console logging (std out)
[in]errLevelThe initial log level to use as log level for error logging (std err)

Definition at line 76 of file consolelogger.cpp.

Member Function Documentation

◆ log()

void ConsoleLogger::log ( JournalLogLevel  level,
char const *  file,
int  line,
char const *  function,
std::string const &  msg 
)
overridevirtual

Write a log line to the console.

Parameters
[in]levelThe log level
[in]fileThe name of the file from which the logging originates (not used)
[in]lineThe line number from which the logging originates (not used)
[in]functionThe name of the function from which the logging originates
[in]msgThe actual log message

Implements AbstractAdditionalLogger.

Definition at line 89 of file consolelogger.cpp.


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


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21