mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Ansi colors can now be enabled with the '-ansiclr- flag. * All loggers have been optimized and are all initialized only once at process startup. * New hook for 'Warning()' print function with warning level.
14 lines
548 B
C++
14 lines
548 B
C++
#pragma once
|
|
|
|
constexpr int SPDLOG_MAX_SIZE = 10 * 1024; // Sets number of bytes before rotating logger.
|
|
constexpr int SPDLOG_NUM_FILE = 0; // Sets number of files to rotate to.
|
|
|
|
inline bool g_bSpdLog_UseAnsiClr = false;
|
|
|
|
//-------------------------------------------------------------------------
|
|
// IMGUI CONSOLE SINK |
|
|
inline std::ostringstream g_spd_sys_w_oss;
|
|
inline auto g_spd_sys_p_ostream_sink = std::make_shared<spdlog::sinks::ostream_sink_st>(g_spd_sys_w_oss);
|
|
|
|
void SpdLog_Init(void);
|