From 4cb8f3f01958007c0dbb370d044c44e5bc75a022 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 26 Mar 2023 17:47:42 +0200 Subject: [PATCH] Enable SpdLog file rotation Enable logger rotation. Rotation takes place when log file hits the limit defined by 'SPDLOG_MAX_SIZE'. --- r5dev/core/logdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/core/logdef.h b/r5dev/core/logdef.h index b8774882..049e0ddd 100644 --- a/r5dev/core/logdef.h +++ b/r5dev/core/logdef.h @@ -1,7 +1,7 @@ #pragma once constexpr int SPDLOG_MAX_SIZE = 10 * 1024 * 1024; // Sets number of bytes before rotating logger. -constexpr int SPDLOG_NUM_FILE = 0; // Sets number of files to rotate to. +constexpr int SPDLOG_NUM_FILE = 512; // Sets number of files to rotate to. inline bool g_bSpdLog_UseAnsiClr = false; inline bool g_bSpdLog_PostInit = false;