Class Scine::Utils::Log::ChainedLogger

class ChainedLogger

Structure allowing to chain output elements to be logged.

The boost macro is called in the destructor to avoid creating one log entry by chained output element.

Public Functions

ChainedLogger(severity_level l)

Construct a new ChainedLogger object.

Parameters
  • l: The severty level of this logger.

ChainedLogger(ChainedLogger &&t)

Default move constructor.

~ChainedLogger()

Custom destructor.

template<typename K>
std::ostream &operator<<(K &&k)

Overriding the left shift operator.

Return

std::ostream& The stream logged to.

Template Parameters
  • K: The type of the message.

Parameters
  • k: The message.