Class cout_logger

Inheritance Relationships

Base Type

Class Documentation

class stream_client::cout_logger : public stream_client::base_logger

Logger print messages to std::cout with time and level.

Public Functions

inline cout_logger(log_level level = log_level::trace)

Construct std::cout logger with level.

cout_logger(const cout_logger &other) = delete

Copy constructor.

cout_logger &operator=(const cout_logger &other) = delete

Copy assignment.

cout_logger(cout_logger &&other) = delete

Move constructor.

cout_logger &operator=(cout_logger &&other) = delete

Move assignment.

virtual ~cout_logger() = default

Destructor.

inline virtual void message(log_level level, const std::string &location, const std::string &message) const override

Log arbitrary message.