Belle II Software  release-08-01-10
LogConnectionJSON Class Referencefinal

Implements a log connection to stdout but with messages formatted as json objects to allow easy parsing by other tools, say jupyter notebooks. More...

#include <LogConnectionJSON.h>

Inheritance diagram for LogConnectionJSON:
Collaboration diagram for LogConnectionJSON:

Public Member Functions

 LogConnectionJSON (bool complete=false)
 The constructor. More...
 
 ~LogConnectionJSON () override=default
 The LogConnectionJSONFile destructor.
 
bool sendMessage (const LogMessage &message) override
 Sends a log message. More...
 
bool isConnected () override
 Returns true if the connection to the text file could be established.
 
void finalizeOnAbort () override
 Finalize on Abort: make sure that connected connection is finalized.
 

Private Attributes

LogConnectionConsole m_console
 LogConnection to the console we use to dispatch the json objects.
 
bool m_complete
 If true ignore the log message format settings and output everything.
 

Detailed Description

Implements a log connection to stdout but with messages formatted as json objects to allow easy parsing by other tools, say jupyter notebooks.

Inherits from the abstract base class LogConnectionBase and uses LogConnectionConsole to do the actual output

Definition at line 26 of file LogConnectionJSON.h.


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