diff options
author | selsta <selsta@sent.at> | 2017-09-17 04:42:45 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2017-09-17 04:42:45 +0200 |
commit | 91def9a59b7b6e252dba4a0a4dd559ad81be2b0d (patch) | |
tree | 53176070df785f0b14b1ed845638f7dc84e744ec /contrib/epee/include | |
parent | Merge pull request #2378 (diff) | |
download | monero-91def9a59b7b6e252dba4a0a4dd559ad81be2b0d.tar.xz |
daemon, wallet: add --max-log-file-size option
Diffstat (limited to 'contrib/epee/include')
-rw-r--r-- | contrib/epee/include/misc_log_ex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index ec4bcbe2d..d351b024d 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -52,6 +52,7 @@ #include "easylogging++.h" #define MONERO_DEFAULT_LOG_CATEGORY "default" +#define MAX_LOG_FILE_SIZE 104850000 // 100 MB - 7600 bytes #define MCFATAL(cat,x) CLOG(FATAL,cat) << x #define MCERROR(cat,x) CLOG(ERROR,cat) << x @@ -123,7 +124,7 @@ #endif std::string mlog_get_default_log_path(const char *default_filename); -void mlog_configure(const std::string &filename_base, bool console); +void mlog_configure(const std::string &filename_base, bool console, const std::size_t max_log_file_size = MAX_LOG_FILE_SIZE); void mlog_set_categories(const char *categories); void mlog_set_log_level(int level); void mlog_set_log(const char *log); |