6#include <spdlog/spdlog.h>
8#include "Util/Transform.hpp"
10namespace Util::Logger {
43void SetLevel(Level level);
54#define LOG_TRACE(...) spdlog::trace(__VA_ARGS__)
55#define LOG_DEBUG(...) spdlog::debug(__VA_ARGS__)
56#define LOG_INFO(...) spdlog::info(__VA_ARGS__)
57#define LOG_WARN(...) spdlog::warn(__VA_ARGS__)
58#define LOG_ERROR(...) spdlog::error(__VA_ARGS__)
59#define LOG_CRITICAL(...) spdlog::critical(__VA_ARGS__)
68template <glm::length_t L,
typename Pre>
69struct fmt::formatter<glm::vec<L, Pre>> : fmt::formatter<Pre> {
70 auto format(
const glm::vec<L, Pre> &vec, format_context &ctx)
const
71 ->
decltype(ctx.out()) {
72 return format_to(ctx.out(),
"{}", glm::to_string(vec));
76template <glm::length_t C, glm::length_t R,
typename Pre>
77struct fmt::formatter<glm::mat<C, R, Pre>> : fmt::formatter<Pre> {
78 auto format(
const glm::mat<C, R, Pre> &mat, format_context &ctx)
const
79 ->
decltype(ctx.out()) {
80 return format_to(ctx.out(),
"{}", glm::to_string(mat));
85struct fmt::formatter<
Util::Transform> : fmt::formatter<std::string> {
87 ->
decltype(ctx.out()) {
88 return format_to(ctx.out(),
"T: {} R: {} rad S: {}", t.
translation,
Useful tools for development.
Definition: Animation.hpp:12