Analysis Software
Documentation for sPHENIX simulation software
|
decorate debug message with its debug level More...
#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Logger.hpp>
Public Member Functions | |
LevelOutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee) | |
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 | toString (const Level &lvl) const |
convert debug level to string | |
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 its debug level
The debug message is complemented with its debug level.
Definition at line 508 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 508 of file Logger.hpp
|
inlineexplicit |
constructor
[in] | wrappee | output print policy object to be wrapped |
Definition at line 513 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 513 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 532 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 532 of file Logger.hpp
References 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 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 523 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 523 of file Logger.hpp
References Acts::Logging::OutputDecorator::flush(), digitization_config::input, left(), os, and toString().
|
inlineprivate |
convert debug level to string
[in] | lvl | debug level |
Definition at line 543 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 543 of file Logger.hpp
Referenced by flush().