hyprland: convert std::cout and std::cerr to std::println()
This commit is contained in:
parent
b61d4c3636
commit
05a5e0b4f1
3 changed files with 37 additions and 32 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "RollingLogFollow.hpp"
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <print>
|
||||
#include <fcntl.h>
|
||||
|
||||
void Debug::init(const std::string& IS) {
|
||||
|
|
@ -69,5 +69,5 @@ void Debug::log(LogLevel level, std::string str) {
|
|||
|
||||
// log it to the stdout too.
|
||||
if (!disableStdout)
|
||||
std::cout << ((coloredLogs && !**coloredLogs) ? str : coloredStr) << "\n";
|
||||
std::println("{}", ((coloredLogs && !**coloredLogs) ? str : coloredStr));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue