diff options
Diffstat (limited to 'server/src/log.cppm')
| -rw-r--r-- | server/src/log.cppm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/log.cppm b/server/src/log.cppm index 10c2d7a..22531d0 100644 --- a/server/src/log.cppm +++ b/server/src/log.cppm | |||
| @@ -48,25 +48,25 @@ public: | |||
| 48 | [[nodiscard]] auto with(std::string const& k, std::string_view v) const | 48 | [[nodiscard]] auto with(std::string const& k, std::string_view v) const |
| 49 | -> logger; | 49 | -> logger; |
| 50 | 50 | ||
| 51 | template <class... Args> | 51 | template <typename... Args> |
| 52 | auto debug(std::format_string<Args...> fmt, Args&&... args) -> logger& | 52 | auto debug(std::format_string<Args...> fmt, Args&&... args) -> logger& |
| 53 | { | 53 | { |
| 54 | return log_at(level::debug, fmt.get(), std::make_format_args(args...)); | 54 | return log_at(level::debug, fmt.get(), std::make_format_args(args...)); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | template <class... Args> | 57 | template <typename... Args> |
| 58 | auto info(std::format_string<Args...> fmt, Args&&... args) -> logger& | 58 | auto info(std::format_string<Args...> fmt, Args&&... args) -> logger& |
| 59 | { | 59 | { |
| 60 | return log_at(level::info, fmt.get(), std::make_format_args(args...)); | 60 | return log_at(level::info, fmt.get(), std::make_format_args(args...)); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | template <class... Args> | 63 | template <typename... Args> |
| 64 | auto warn(std::format_string<Args...> fmt, Args&&... args) -> logger& | 64 | auto warn(std::format_string<Args...> fmt, Args&&... args) -> logger& |
| 65 | { | 65 | { |
| 66 | return log_at(level::warn, fmt.get(), std::make_format_args(args...)); | 66 | return log_at(level::warn, fmt.get(), std::make_format_args(args...)); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | template <class... Args> | 69 | template <typename... Args> |
| 70 | auto error(std::format_string<Args...> fmt, Args&&... args) -> logger& | 70 | auto error(std::format_string<Args...> fmt, Args&&... args) -> logger& |
| 71 | { | 71 | { |
| 72 | return log_at(level::error, fmt.get(), std::make_format_args(args...)); | 72 | return log_at(level::error, fmt.get(), std::make_format_args(args...)); |