EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Logging::LevelOutputDecorator Exception Referencefinal

decorate debug message with its debug level More...

#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Logger.hpp>

+ Inheritance diagram for Acts::Logging::LevelOutputDecorator:
+ Collaboration diagram for Acts::Logging::LevelOutputDecorator:

Public Member Functions

 LevelOutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee)
 constructor
 
void flush (const Level &lvl, const std::ostringstream &input) override
 flush the debug message to the destination stream
 
- Public Member Functions inherited from Acts::Logging::OutputDecorator
 OutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee)
 constructor wrapping actual output print policy
 
- Public Member Functions inherited from Acts::Logging::OutputPrintPolicy
virtual ~OutputPrintPolicy ()=default
 virtual default destructor
 

Private Member Functions

std::string toString (const Level &lvl) const
 convert debug level to string
 

Detailed Description

decorate debug message with its debug level

The debug message is complemented with its debug level.

Definition at line 422 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 422 of file Logger.hpp

Constructor & Destructor Documentation

Acts::Logging::LevelOutputDecorator::LevelOutputDecorator ( std::unique_ptr< OutputPrintPolicy wrappee)
inlineexplicit

constructor

Parameters
[in]wrappeeoutput print policy object to be wrapped

Definition at line 427 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 427 of file Logger.hpp

Member Function Documentation

void Acts::Logging::LevelOutputDecorator::flush ( const Level lvl,
const std::ostringstream &  input 
)
inlineoverridevirtual

flush the debug message to the destination stream

Parameters
[in]lvldebug level of debug message
[in]inputtext of debug message

This function prepends the debug level to the debug message and then delegates the flushing of the whole message to its wrapped object.

Reimplemented from Acts::Logging::OutputDecorator.

Definition at line 437 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 437 of file Logger.hpp

References Acts::Logging::OutputDecorator::flush(), and toString().

+ Here is the call graph for this function:

std::string Acts::Logging::LevelOutputDecorator::toString ( const Level lvl) const
inlineprivate

convert debug level to string

Parameters
[in]lvldebug level
Returns
string representation of debug level

Definition at line 449 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 449 of file Logger.hpp

Referenced by flush().

+ Here is the caller graph for this function:


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