Loading...
Searching...
No Matches
Logger.hpp
1#pragma once
2#include <ossia/detail/logger.hpp>
3
4namespace oscr
5{
6struct Logger
7{
8 using logger_type = Logger;
9 template <typename... T>
10 static void log(fmt::format_string<T...> fmt, T&&... args) noexcept
11 {
12 ossia::logger().info(fmt, std::forward<T>(args)...);
13 }
14 template <typename... T>
15 static void trace(fmt::format_string<T...> fmt, T&&... args) noexcept
16 {
17 ossia::logger().trace(fmt, std::forward<T>(args)...);
18 }
19 template <typename... T>
20 static void debug(fmt::format_string<T...> fmt, T&&... args) noexcept
21 {
22 ossia::logger().debug(fmt, std::forward<T>(args)...);
23 }
24 template <typename... T>
25 static void info(fmt::format_string<T...> fmt, T&&... args) noexcept
26 {
27 ossia::logger().info(fmt, std::forward<T>(args)...);
28 }
29 template <typename... T>
30 static void warn(fmt::format_string<T...> fmt, T&&... args) noexcept
31 {
32 ossia::logger().warn(fmt, std::forward<T>(args)...);
33 }
34 template <typename... T>
35 static void error(fmt::format_string<T...> fmt, T&&... args) noexcept
36 {
37 ossia::logger().error(fmt, std::forward<T>(args)...);
38 }
39 template <typename... T>
40 static void critical(fmt::format_string<T...> fmt, T&&... args) noexcept
41 {
42 ossia::logger().critical(fmt, std::forward<T>(args)...);
43 }
44};
45}
Definition Factories.hpp:19
Definition Logger.hpp:7