Class ThreadOutputDecorator

Inheritance Relationships

Base Type

Class Documentation

class Acts::Logging::ThreadOutputDecorator : public Acts::Logging::OutputDecorator

decorate debug message with a thread ID

The debug message is complemented with a thread ID.

Public Functions

ThreadOutputDecorator(std::unique_ptr<OutputPrintPolicy> wrappee)

constructor

Parameters
  • [in] wrappee: output print policy object to be wrapped

void flush(const Level &lvl, const std::string &input) override

flush the debug message to the destination stream

This function prepends the thread ID 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