TreeFrogFramework  2.8
Public Member Functions | List of all members
TStdOutLogger Class Reference

#include <tstdoutlogger.h>

Inheritance diagram for TStdOutLogger:
Inheritance graph
[legend]
Collaboration diagram for TStdOutLogger:
Collaboration graph
[legend]

Public Member Functions

 TStdOutLogger ()
 
QString key () const override
 
bool isMultiProcessSafe () const override
 
bool open () override
 
void close () override
 
bool isOpen () const override
 
void log (const QByteArray &) override
 
void flush () override
 
- Public Member Functions inherited from TLogger
 TLogger ()
 
virtual ~TLogger ()
 
virtual void log (const TLog &tlog)
 
virtual QByteArray logToByteArray (const TLog &log) const
 
const QByteArray & layout () const
 
const QByteArray & dateTimeFormat () const
 
Tf::LogPriority threshold () const
 
const QString & target () const
 

Additional Inherited Members

- Static Public Member Functions inherited from TLogger
static QByteArray logToByteArray (const TLog &log, const QByteArray &layout, const QByteArray &dateTimeFormat, QStringConverter::Encoding encoding=QStringConverter::Utf8)
 
static QByteArray priorityToString (Tf::LogPriority priority)
 
- Protected Member Functions inherited from TLogger
QStringConverter::Encoding encoding () const
 
QVariant settingsValue (const QString &key, const QVariant &defaultValue=QVariant()) const
 

Detailed Description

The TStdOutLogger class provides functionality of logging to stdout.

Constructor & Destructor Documentation

◆ TStdOutLogger()

TStdOutLogger::TStdOutLogger ( )

Member Function Documentation

◆ close()

void TStdOutLogger::close ( )
inlineoverridevirtual

Closes the device.

This function should be called from any reimplementations of close().

Implements TLogger.

◆ flush()

void TStdOutLogger::flush ( )
overridevirtual

Flushes any buffered data to the device.

This function should be called from any reimplementations of flush().

Reimplemented from TLogger.

◆ isMultiProcessSafe()

bool TStdOutLogger::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 TStdOutLogger::isOpen ( ) const
inlineoverridevirtual

Returns true if the device is open; otherwise returns false.

This function should be called from any reimplementations of isOpen().

Implements TLogger.

◆ key()

QString TStdOutLogger::key ( ) const
inlineoverridevirtual

Returns a key that this logger plugin supports.

Implements TLogger.

◆ log()

void TStdOutLogger::log ( const QByteArray &  msg)
overridevirtual

Implements TLogger.

◆ open()

bool TStdOutLogger::open ( )
inlineoverridevirtual

Opens the device for logging.

Returns true if successful; otherwise returns false. This function should be called from any reimplementations of open().

Implements TLogger.


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