Qt Cryptographic Architecture
QCA::AbstractLogDevice Class Referenceabstract

#include <QtCrypto>

Collaboration diagram for QCA::AbstractLogDevice:

Public Member Functions

virtual void logBinaryMessage (const QByteArray &blob, Logger::Severity severity)
 
virtual void logTextMessage (const QString &message, Logger::Severity severity)
 
QString name () const
 

Protected Member Functions

 AbstractLogDevice (const QString &name, QObject *parent=nullptr)
 

Detailed Description

An abstract log device.

Constructor & Destructor Documentation

◆ AbstractLogDevice()

QCA::AbstractLogDevice::AbstractLogDevice ( const QString & name,
QObject * parent = nullptr )
explicitprotected

Create a new message logger.

Parameters
namethe name of this log device
parentthe parent for this logger

Member Function Documentation

◆ name()

QString QCA::AbstractLogDevice::name ( ) const

The name of this log device.

◆ logTextMessage()

virtual void QCA::AbstractLogDevice::logTextMessage ( const QString & message,
Logger::Severity severity )
virtual

Log a message.

The default implementation does nothing - you should override this method in your subclass to do whatever logging is required

Parameters
messagethe message to log
severitythe severity level of the message

◆ logBinaryMessage()

virtual void QCA::AbstractLogDevice::logBinaryMessage ( const QByteArray & blob,
Logger::Severity severity )
virtual

Log a binary blob.

The default implementation does nothing - you should override this method in your subclass to do whatever logging is required

Parameters
blobthe message (as a byte array) to log
severitythe severity level of the message

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