aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorswurl <swurl@swurl.xyz>2025-04-24 10:58:22 -0400
committerswurl <swurl@swurl.xyz>2025-04-24 10:58:22 -0400
commit9cb03cd007e0436ffc2e3e9580508d1197a403ae (patch)
treed5592381654318156b42790a84e71a889e58e355 /src
parent609f5e48e053740087100ddbc0199602cb230f5a (diff)
Log by line compilation option
Signed-off-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/common/logging/backend.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 291847fcf8..5ce1c2582e 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -106,6 +106,11 @@ public:
bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n'));
+ // Option to log each line rather than 4k buffers
+#ifdef YUZU_LOG_BY_LINE
+ file->Flush();
+#endif
+
using namespace Common::Literals;
// Prevent logs from exceeding a set maximum size in the event that log entries are spammed.
const auto write_limit = Settings::values.extended_logging.GetValue() ? 1_GiB : 100_MiB;