![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
decorate debug message with a name More...
#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Logger.hpp>
Inheritance diagram for Acts::Logging::NamedOutputDecorator:
Collaboration diagram for Acts::Logging::NamedOutputDecorator:Public Member Functions | |
| NamedOutputDecorator (std::unique_ptr< OutputPrintPolicy > wrappee, const std::string &name, unsigned int maxWidth=15) | |
| 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 Attributes | |
| std::string | m_name |
| name to be prepended | |
| unsigned int | m_maxWidth |
| maximum width of field for printing the name | |
decorate debug message with a name
The debug message is complemented with a name.
Definition at line 316 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 316 of file Logger.hpp
|
inline |
constructor
| [in] | wrappee | output print policy object to be wrapped |
| [in] | name | name to be added to debug message |
| [in] | maxWidth | maximum width of field used for name |
Definition at line 323 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 323 of file Logger.hpp
|
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 given name 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 336 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 336 of file Logger.hpp
References Acts::Logging::OutputDecorator::flush(), m_maxWidth, and m_name.
Here is the call graph for this function:
|
private |
maximum width of field for printing the name
Definition at line 348 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 348 of file Logger.hpp
Referenced by flush().
|
private |
name to be prepended
Definition at line 345 of file Logger.hpp.
View newest version in sPHENIX GitHub at line 345 of file Logger.hpp
Referenced by flush().