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

decorate debug message with a time stamp More...

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

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

Public Member Functions

 TimedOutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee, const std::string &format="%X")
 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 now () const
 get current time stamp
 

Private Attributes

std::string m_format
 format of the time stamp (see std::strftime for details)
 

Detailed Description

decorate debug message with a time stamp

The debug message is complemented with a time stamp.

Definition at line 354 of file Logger.hpp.

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

Constructor & Destructor Documentation

Acts::Logging::TimedOutputDecorator::TimedOutputDecorator ( std::unique_ptr< OutputPrintPolicy wrappee,
const std::string &  format = "%X" 
)
inline

constructor

Parameters
[in]wrappeeoutput print policy object to be wrapped
[in]formatformat of time stamp (see std::strftime)

Definition at line 360 of file Logger.hpp.

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

Member Function Documentation

void Acts::Logging::TimedOutputDecorator::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 a time stamp 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 371 of file Logger.hpp.

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

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

+ Here is the call graph for this function:

std::string Acts::Logging::TimedOutputDecorator::now ( ) const
inlineprivate

get current time stamp

Returns
current time stamp as string

Definition at line 381 of file Logger.hpp.

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

References buffer, m_format, t, and Acts::Test::time.

Referenced by flush(), and pepsimainerhic().

+ Here is the caller graph for this function:

Member Data Documentation

std::string Acts::Logging::TimedOutputDecorator::m_format
private

format of the time stamp (see std::strftime for details)

Definition at line 390 of file Logger.hpp.

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

Referenced by now().


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