diff --git a/include/ircd/logger.h b/include/ircd/logger.h index 69fd4d041..e26ebbec2 100644 --- a/include/ircd/logger.h +++ b/include/ircd/logger.h @@ -29,6 +29,7 @@ namespace ircd::log struct log; struct vlog; + struct logf; struct mark; struct console_quiet; @@ -122,6 +123,15 @@ struct ircd::log::vlog vlog(const log &log, const facility &, const char *const &fmt, const va_rtti &ap); }; +struct ircd::log::logf +{ + template + logf(const log &log, const facility &facility, const char *const &fmt, args&&... a) + { + vlog(log, facility, fmt, va_rtti{std::forward(a)...}); + } +}; + struct ircd::log::mark { mark(const facility &, const string_view &msg = {});