Belle II Software
release-08-01-10
|
Abstract base class for the different types of log connections. More...
#include <LogConnectionBase.h>
Public Member Functions | |
LogConnectionBase () | |
The LogConnectionBase default constructor. | |
virtual | ~LogConnectionBase () |
The LogConnectionBase destructor. | |
virtual bool | sendMessage (const LogMessage &message)=0 |
Sends a log message. More... | |
virtual bool | isConnected ()=0 |
Returns true if the connection could be established. More... | |
virtual void | finalizeOnAbort () |
Called just before the system exists after a fatal error. More... | |
Abstract base class for the different types of log connections.
Definition at line 21 of file LogConnectionBase.h.
|
inlinevirtual |
Called just before the system exists after a fatal error.
Can be used to flush the output or close the file
Reimplemented in LogConnectionTxtFile, LogConnectionJSON, LogConnectionFilter, and LogConnectionConsole.
Definition at line 48 of file LogConnectionBase.h.
|
pure virtual |
Returns true if the connection could be established.
Implemented in LogConnectionTxtFile, LogConnectionJSON, LogConnectionFilter, LogConnectionConsole, and LogConnectionUDP.
|
pure virtual |
Sends a log message.
message | The log message object. |
Implemented in LogConnectionTxtFile, LogConnectionJSON, LogConnectionFilter, LogConnectionConsole, and LogConnectionUDP.