CuteLogger
Fast and simple logging solution for Qt based applications
OutputDebugAppender Class Reference

Appender that writes the log records to the Microsoft Debug Log. More...

Inheritance diagram for OutputDebugAppender:
AbstractStringAppender AbstractAppender

Protected Member Functions

virtual void append (const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)
 Writes the log record to the windows debug log.
 
- Protected Member Functions inherited from AbstractStringAppender
QString formattedString (const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message) const
 Returns the string to record to the logging target, formatted according to the format().
 
- Protected Member Functions inherited from AbstractAppender

Additional Inherited Members

- Public Member Functions inherited from AbstractStringAppender
 AbstractStringAppender ()
 Constructs a new string appender object.
 
virtual QString format () const
 Returns the current log format string.
 
void setFormat (const QString &)
 Sets the logging format for writing strings to the log target with this appender.
 
- Public Member Functions inherited from AbstractAppender
 AbstractAppender ()
 Constructs a AbstractAppender object.
 
virtual ~AbstractAppender ()
 Destructs the AbstractAppender object.
 
Logger::LogLevel detailsLevel () const
 Returns the current details level of appender.
 
void setDetailsLevel (Logger::LogLevel level)
 Sets the current details level of appender.
 
void setDetailsLevel (const QString &level)
 Sets the current details level of appender.
 
void write (const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)
 Tries to write the log record to this logger.
 
- Static Public Member Functions inherited from AbstractStringAppender
static QString stripFunctionName (const char *)
 Strips the long function signature (as added by Q_FUNC_INFO macro)
 

Detailed Description

Appender that writes the log records to the Microsoft Debug Log.

Member Function Documentation

◆ append()

void OutputDebugAppender::append ( const QDateTime & timeStamp,
Logger::LogLevel logLevel,
const char * file,
int line,
const char * function,
const QString & category,
const QString & message )
protectedvirtual

Writes the log record to the windows debug log.

See also
AbstractStringAppender::format()

Implements AbstractAppender.


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