mirror of
https://github.com/monero-project/monero.git
synced 2025-08-07 14:52:18 -04:00
Properly format multiline logs
As a side effect, colouring on Windows should now work regardless of version
This commit is contained in:
parent
2c171a9b02
commit
32f725d32f
8 changed files with 217 additions and 66 deletions
|
@ -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); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue