![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
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::string &input) override |
| flush the debug message to the destination stream | |
| std::unique_ptr < OutputPrintPolicy > | clone (const std::string &name) const override |
Public Member Functions inherited from Acts::Logging::OutputDecorator | |
| OutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee) | |
| constructor wrapping actual output print policy | |
| const std::string & | name () const override |
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) | |
Additional Inherited Members | |
Protected Attributes inherited from Acts::Logging::OutputDecorator | |
| std::unique_ptr < OutputPrintPolicy > | m_wrappee |
| wrapped object for printing the debug message | |
decorate debug message with a time stamp
The debug message is complemented with a time stamp.
Definition at line 424 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 424 of file Logger.hpp
|
inline |
constructor
| [in] | wrappee | output print policy object to be wrapped |
| [in] | format | format of time stamp (see std::strftime) |
Definition at line 430 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 430 of file Logger.hpp
|
inlineoverridevirtual |
Make a copy of this print policy with a new name
| name | the new name |
Implements Acts::Logging::OutputPrintPolicy.
Definition at line 450 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 450 of file Logger.hpp
References m_format, and Acts::Logging::OutputDecorator::m_wrappee.
|
inlineoverridevirtual |
flush the debug message to the destination stream
| [in] | lvl | debug level of debug message |
| [in] | input | text 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 441 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 441 of file Logger.hpp
References Acts::Logging::OutputDecorator::flush(), digitization_config::input, left(), now(), and os.
Here is the call graph for this function:
|
inlineprivate |
get current time stamp
Definition at line 460 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 460 of file Logger.hpp
References m_format, t, and Acts::Test::time.
Referenced by flush().
Here is the caller graph for this function:
|
private |
format of the time stamp (see std::strftime for details)
Definition at line 469 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 469 of file Logger.hpp