Class NamedOutputDecorator¶
Defined in File Logger.hpp
Inheritance Relationships¶
Base Type¶
public Acts::Logging::OutputDecorator
(Class OutputDecorator)
Class Documentation¶
-
class
Acts::Logging
::
NamedOutputDecorator
: public Acts::Logging::OutputDecorator¶ decorate debug message with a name
The debug message is complemented with a name.
Public Functions
-
NamedOutputDecorator
(std::unique_ptr<OutputPrintPolicy> wrappee, const std::string &name, unsigned int maxWidth = 15)¶ constructor
- Parameters
[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
-
void
flush
(const Level &lvl, const std::ostringstream &input) override¶ flush the debug message to the destination stream
This function prepends the given name to the debug message and then delegates the flushing of the whole message to its wrapped object.
- Parameters
[in] lvl
: debug level of debug message[in] input
: text of debug message
-