Belle II Software  release-08-01-10
LogConnectionBase Class Referenceabstract

Abstract base class for the different types of log connections. More...

#include <LogConnectionBase.h>

Inheritance diagram for LogConnectionBase:

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...
 

Detailed Description

Abstract base class for the different types of log connections.

Definition at line 21 of file LogConnectionBase.h.

Member Function Documentation

◆ finalizeOnAbort()

virtual void finalizeOnAbort ( )
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.

48 {}

◆ isConnected()

virtual bool isConnected ( )
pure virtual

Returns true if the connection could be established.

Returns
True if the connection could be established.

Implemented in LogConnectionTxtFile, LogConnectionJSON, LogConnectionFilter, LogConnectionConsole, and LogConnectionUDP.

◆ sendMessage()

virtual bool sendMessage ( const LogMessage message)
pure virtual

Sends a log message.

Parameters
messageThe log message object.
Returns
Returns true if the message could be send.

Implemented in LogConnectionTxtFile, LogConnectionJSON, LogConnectionFilter, LogConnectionConsole, and LogConnectionUDP.


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