0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::log: Add logf to complement vlog.

This commit is contained in:
Jason Volk 2018-04-23 17:44:49 -07:00
parent ed7375a653
commit 48c38f4282

View file

@ -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<class... args>
logf(const log &log, const facility &facility, const char *const &fmt, args&&... a)
{
vlog(log, facility, fmt, va_rtti{std::forward<args>(a)...});
}
};
struct ircd::log::mark
{
mark(const facility &, const string_view &msg = {});