19 #ifndef MIR_LOGGING_LOGGER_H_ 20 #define MIR_LOGGING_LOGGER_H_ 45 const std::string& message,
46 const std::string& component) = 0;
55 virtual void log(
char const* component,
Severity severity,
char const*
format, ...)
56 __attribute__ ((
format (printf, 4, 5)));
65 void log(
Severity severity,
const std::string& message,
const std::string& component);
66 void set_logger(std::shared_ptr<Logger>
const& new_logger);
71 #endif // MIR_LOGGING_LOGGER_H_ AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
Logger()
Definition: logger.h:59
virtual ~Logger()=default
void log(Severity severity, const std::string &message, const std::string &component)
Logger & operator=(const Logger &)=delete
void set_logger(std::shared_ptr< Logger > const &new_logger)
virtual void log(Severity severity, const std::string &message, const std::string &component)=0
Severity
Definition: logger.h:30