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:
parent
ed7375a653
commit
48c38f4282
1 changed files with 10 additions and 0 deletions
|
@ -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 = {});
|
||||
|
|
Loading…
Reference in a new issue