mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 15:16:40 -08:00
Properly format multiline logs
As a side effect, colouring on Windows should now work regardless of version
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#define MONERO_DEFAULT_LOG_CATEGORY "perf"
|
||||
|
||||
#define PERF_LOG_ALWAYS(level, cat, x) \
|
||||
el::base::Writer(level, __FILE__, __LINE__, ELPP_FUNC, el::base::DispatchAction::FileOnlyLog).construct(cat) << x
|
||||
el::base::Writer(level, el::Color::Default, __FILE__, __LINE__, ELPP_FUNC, el::base::DispatchAction::FileOnlyLog).construct(cat) << x
|
||||
#define PERF_LOG(level, cat, x) \
|
||||
do { \
|
||||
if (ELPP->vRegistry()->allowed(level, cat)) PERF_LOG_ALWAYS(level, cat, x); \
|
||||
|
||||
Reference in New Issue
Block a user