#include <tfileaiologger.h>
The TFileAioLogger class provides asynchronous logging functionality to a log file.
◆ TFileAioLogger()
TFileAioLogger::TFileAioLogger |
( |
| ) |
|
◆ ~TFileAioLogger()
TFileAioLogger::~TFileAioLogger |
( |
| ) |
|
◆ close()
void TFileAioLogger::close |
( |
| ) |
|
|
overridevirtual |
Closes the device.
This function should be called from any reimplementations of close().
Implements TLogger.
◆ flush()
void TFileAioLogger::flush |
( |
| ) |
|
|
overridevirtual |
Flushes any buffered data to the device.
This function should be called from any reimplementations of flush().
Reimplemented from TLogger.
◆ isMultiProcessSafe()
bool TFileAioLogger::isMultiProcessSafe |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns true if the implementation is guaranteed to be free of race conditions when accessed by multiple processes simultaneously; otherwise returns false.
Implements TLogger.
◆ isOpen()
bool TFileAioLogger::isOpen |
( |
| ) |
const |
|
overridevirtual |
Returns true if the device is open; otherwise returns false.
This function should be called from any reimplementations of isOpen().
Implements TLogger.
◆ key()
QString TFileAioLogger::key |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a key that this logger plugin supports.
Implements TLogger.
◆ log() [1/2]
void TFileAioLogger::log |
( |
const QByteArray & |
msg | ) |
|
|
overridevirtual |
◆ log() [2/2]
void TFileAioLogger::log |
( |
const TLog & |
log | ) |
|
|
inlineoverridevirtual |
Writes the log log to the device.
This function should be called from any reimplementations of log().
Reimplemented from TLogger.
◆ open()
bool TFileAioLogger::open |
( |
| ) |
|
|
overridevirtual |
Opens the device for logging.
Returns true if successful; otherwise returns false. This function should be called from any reimplementations of open().
Implements TLogger.
◆ setFileName()
void TFileAioLogger::setFileName |
( |
const QString & |
name | ) |
|
The documentation for this class was generated from the following files: