![]() |
Carousel
|
The TextLogger class provides the simple logging for the carousel engine. More...
#include <TextLogger.h>
Inherits LoggerFacade.
Public Member Functions | |
TextLogger (QTextStream &output) | |
TextLogger (QTextStream &output, const QString &name) | |
void | d (const QString &message) |
void | e (const QString &message) |
void | f (const QString &message) |
LoggerFacade * | getLogger (const QString &name) |
void | i (const QString &message) |
void | t (const QString &message) |
void | w (const QString &message) |
![]() | |
LoggerFacade (const QString &name) | |
const QString & | name () const |
Protected Member Functions | |
virtual void | log (const QString &message, const QString &category) |
![]() | |
LoggerFacade (LoggerFacade *engine) | |
Protected Attributes | |
QTextStream & | m_outputStream |
Additional Inherited Members | |
![]() | |
static LoggerFacade | createLogger (const QString &name) |
static void | installLoggerEngine (LoggerFacade *loggerEngine) |
static LoggerFacade * | loggerEngine () |
The TextLogger class provides the simple logging for the carousel engine.
Writes output to the QTextStream specified in the constructor with following pattern:
where first parameter is datetime, second logger name, third - category and fourth - message. For example:
will printed to the console
If you does't override BootloaderBase::createLoggerEngine() method to instantiate your own logger facade over the better logging engine (e.g., log4cplus), the default logger will be created with the std::cout stream for output during the loading sequence:
TextLogger::TextLogger | ( | QTextStream & | output | ) |
Initializes a new instance of the TextLogger class with the specified output stream for the logging.
Sets logger name to Root.
TextLogger::TextLogger | ( | QTextStream & | output, |
const QString & | name | ||
) |
Initializes a new instance of the TextLogger class with the specified name and output stream for the logging.
The name will append in the log message.
|
virtual |
Creates and returns a new instance of the TextLogger with specified name.
Reimplemented from LoggerFacade.
|
virtual |
Sends a debug log message to the output stream. Debug logs are stripped at runtime in release configuration.
Reimplemented from LoggerFacade.
|
virtual |
Sends an error log message to the output stream.
Reimplemented from LoggerFacade.
|
virtual |
Sends a fatal log message to the output stream.
Reimplemented from LoggerFacade.
|
virtual |
Sends an info log message to the output stream.
Reimplemented from LoggerFacade.
|
virtual |
Sends a trace log message to the output stream.
Reimplemented from LoggerFacade.
|
virtual |
Sends a warning log message to the output stream.
Reimplemented from LoggerFacade.
|
protected |
The specified output stream for the logging.