Class TimedOutputDecorator

Inheritance Relationships

Base Type

Class Documentation

class Acts::Logging::TimedOutputDecorator : public Acts::Logging::OutputDecorator

decorate debug message with a time stamp

The debug message is complemented with a time stamp.

Public Functions

TimedOutputDecorator(std::unique_ptr<OutputPrintPolicy> wrappee, const std::string &format = "%X")

constructor

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

  • [in] format: format of time stamp (see std::strftime)

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

flush the debug message to the destination stream

This function prepends a time stamp 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