From bbec3b57e296543c5005b93ad1d74c6e3ad34a40 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 4 Feb 2021 10:04:07 -0500 Subject: Add convenience functions to logging framework Reviewed-by: Alex Chernyakhovsky --- log.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'log.h') diff --git a/log.h b/log.h index fe2015b..e0d3963 100644 --- a/log.h +++ b/log.h @@ -61,6 +61,26 @@ class Log final { template void Message(Level, Args...); + template + void Debug(Args... args) { + Message(kDebug, args...); + } + + template + void Info(Args... args) { + Message(kInfo, args...); + } + + template + void Warning(Args... args) { + Message(kWarning, args...); + } + + template + void Error(Args... args) { + Message(kError, args...); + } + private: std::string prefix_; Level minimum_level_; -- cgit v1.2.3