diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:07:46 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:07:46 +0200 |
commit | b6ae7184563f4435475e8a3aa9809f078e15b120 (patch) | |
tree | 626943d88609c1613fd723d99567ed52b13e60cc /contrib/epee/include/misc_log_ex.h | |
parent | Merge pull request #2191 (diff) | |
parent | mlog: default to msgwriter logs only for log level 1 (diff) | |
download | monero-b6ae7184563f4435475e8a3aa9809f078e15b120.tar.xz |
Merge pull request #2195
599436a4 mlog: default to msgwriter logs only for log level 1 (moneromooo-monero)
58f3fc68 Make msgwriter logs go to file only (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/misc_log_ex.h')
-rw-r--r-- | contrib/epee/include/misc_log_ex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index 6eeb1441f..ec4bcbe2d 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -60,6 +60,7 @@ #define MCDEBUG(cat,x) CLOG(DEBUG,cat) << x #define MCTRACE(cat,x) CLOG(TRACE,cat) << x #define MCLOG(level,cat,x) ELPP_WRITE_LOG(el::base::Writer, level, el::base::DispatchAction::NormalLog, cat) << x +#define MCLOG_FILE(level,cat,x) ELPP_WRITE_LOG(el::base::Writer, level, el::base::DispatchAction::FileOnlyLog, cat) << x #define MCLOG_COLOR(level,cat,color,x) MCLOG(level,cat,"\033[1;" color "m" << x << "\033[0m") #define MCLOG_RED(level,cat,x) MCLOG_COLOR(level,cat,"31",x) |