32 char const* fmt, va_list va);
34 char const* fmt, ...);
36 std::string
const& message);
39 char const* component,
40 std::exception_ptr
const& exception,
41 std::string
const& message);
43 #ifndef MIR_LOG_COMPONENT 44 #ifdef MIR_LOG_COMPONENT_FALLBACK 45 #define MIR_LOG_COMPONENT MIR_LOG_COMPONENT_FALLBACK 49 #ifdef MIR_LOG_COMPONENT 54 inline void log_info(std::string
const& message)
57 MIR_LOG_COMPONENT, message);
60 template<
typename... Args>
61 void log_info(
char const* fmt, Args&&... args)
64 MIR_LOG_COMPONENT, fmt, std::forward<Args>(args)...);
67 template<
typename... Args>
68 void log_error(
char const* fmt, Args&&... args)
71 MIR_LOG_COMPONENT, fmt, std::forward<Args>(args)...);
74 template<
typename... Args>
75 inline void log_debug(
char const* fmt, Args&&... args)
78 MIR_LOG_COMPONENT, fmt, std::forward<Args>(args)...);
81 inline void log_critical(std::string
const& message)
84 MIR_LOG_COMPONENT, message);
87 template<
typename... Args>
88 void log_critical(
char const* fmt, Args&&... args)
91 MIR_LOG_COMPONENT, fmt, std::forward<Args>(args)...);
94 inline void log_error(std::string
const& message)
97 MIR_LOG_COMPONENT, message);
100 inline void log_warning(std::string
const& message)
103 MIR_LOG_COMPONENT, message);
106 template<
typename... Args>
107 void log_warning(
char const* fmt, Args&&... args)
110 MIR_LOG_COMPONENT, fmt, std::forward<Args>(args)...);
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: sw_splash.h:26
void log(logging::Severity sev, char const *component, std::exception_ptr const &exception, std::string const &message)
void logv(logging::Severity sev, const char *component, char const *fmt, va_list va)
void log(logging::Severity sev, const char *component, char const *fmt,...)
Severity
Definition: logger.h:30