DtkCore
DTK Core module
|
Appender that writes the log records to the Microsoft Debug Log. 更多...
Protected 成员函数 | |
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. \reimp 更多... | |
![]() | |
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(). 更多... | |
virtual void | append (const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)=0 |
Writes the log record to the logger instance 更多... | |
额外继承的成员函数 | |
![]() | |
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. 更多... | |
![]() | |
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 QString | stripFunctionName (const char *) |
Strips the long function signature (as added by Q_FUNC_INFO macro). 更多... | |
Appender that writes the log records to the Microsoft Debug Log.
\inmodule dtkcore
|
protectedvirtual |
Writes the log record to the windows debug log. \reimp
Writes the log record to the windows debug log.
The timeStamp parameter indicates the time stamp. The logLevel parameter describes the LogLevel. The file parameter is the current file name. The line parameter indicates the number of lines to output. The function parameter indicates the function name to output. The category parameter indicates the log category. The message parameter indicates the output message.