TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tstdoutlogger.h
Go to the documentation of this file.
1#pragma once
2#include <TLogger>
3
4
6public:
8
9 QString key() const override { return "StdOutLogger"; }
10 bool isMultiProcessSafe() const override { return true; }
11 bool open() override { return true; }
12 void close() override {}
13 bool isOpen() const override { return true; }
14 void log(const QByteArray &) override;
15 void flush() override;
16};
The TLogger class provides an abstract base of logging functionality.
Definition tlogger.h:19
virtual void flush()
Flushes any buffered data to the device.
Definition tlogger.h:30
virtual void log(const QByteArray &)=0
The TStdOutLogger class provides functionality of logging to stdout.
Definition tstdoutlogger.h:5
void close() override
Closes the device.
Definition tstdoutlogger.h:12
QString key() const override
Returns a key that this logger plugin supports.
Definition tstdoutlogger.h:9
bool isMultiProcessSafe() const override
Returns true if the implementation is guaranteed to be free of race conditions when accessed by multi...
Definition tstdoutlogger.h:10
bool isOpen() const override
Returns true if the device is open; otherwise returns false.
Definition tstdoutlogger.h:13
bool open() override
Opens the device for logging.
Definition tstdoutlogger.h:11
#define T_CORE_EXPORT
Definition tdeclexport.h:28