mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-21 06:53:48 -07:00
Adds a test suite for testing hyprland's features with a runtime tester --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
17 lines
383 B
C++
17 lines
383 B
C++
#pragma once
|
|
#include <string>
|
|
#include <format>
|
|
#include <print>
|
|
|
|
namespace NLog {
|
|
template <typename... Args>
|
|
//NOLINTNEXTLINE
|
|
void log(std::format_string<Args...> fmt, Args&&... args) {
|
|
std::string logMsg = "";
|
|
|
|
logMsg += std::vformat(fmt.get(), std::make_format_args(args...));
|
|
|
|
std::println("{}", logMsg);
|
|
std::fflush(stdout);
|
|
}
|
|
} |