aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/misc_log_ex.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-01-16Reduced executable size; reduced call sequence to "allowed" log functionLee Clagett1-2/+2
2019-09-24epee: misc_log_ex.h can now be used in C codemoneromooo-monero1-0/+26
use mfatal/merror/mwarning/minfo/mdebug/mtrace
2019-09-16Properly format multiline logsmoneromooo-monero1-21/+21
As a side effect, colouring on Windows should now work regardless of version
2019-01-22Pruningmoneromooo-monero1-0/+10
The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
2018-12-07easylogging++: check allowed categories before loggingmoneromooo-monero1-8/+15
2018-10-27tests: fix MSYS2 warning 'MONERO_DEFAULT_LOG_CATEGORY redefined'xiphon1-0/+2
2018-06-13mlog: --max-log-files to set the max number of rotated log filesstoffu1-1/+2
2017-12-16move includes around to lessen overall loadmoneromooo-monero1-19/+0
2017-12-07epee: add do while(0) around brace statement in a macromoneromooo-monero1-1/+1
Allows use in more complex expressions
2017-10-07frob level 1 logs a bit for consistencymoneromooo-monero1-3/+3
Level 1 logs map to INFO, so setting log level to 1 should show these. Demote some stuff to DEBUG to avoid spam, though.
2017-10-02Merge pull request #2512Riccardo Spagni1-0/+1
792ba4f0 Log categories can now be added to and removed from (moneromooo-monero) 48f92eb6 easylogging++: add categories getter (moneromooo-monero) f35afe62 epee: factor log level/categories setting (moneromooo-monero)
2017-09-22Log categories can now be added to and removed frommoneromooo-monero1-0/+1
Also, set_log without parameters now prints the log categories
2017-09-17daemon, wallet: add --max-log-file-size optionselsta1-1/+2
2017-07-24Make msgwriter logs go to file onlymoneromooo-monero1-0/+1
This was the case for monero-wallet-cli already, but not for monerod, which was making it pretty spammy as it was duplicating intended output. Since my original intent was to ensure logs included command output for debugging, this achieves both.
2017-04-10setThreadName moved in new version of easylogging++moneromooo-monero1-1/+1
2017-04-10update easylogging++ to latest upstreammoneromooo-monero1-9/+0
2017-02-12Fixup choice of easylogging++ vs libunwind stack trace codemoneromooo-monero1-2/+3
2017-02-06disable ELPP_STACKTRACE_ON_CRASH for androidMoroccanMalinois1-0/+2
2017-02-04Use easylogging++'s stack trace facility where possiblemoneromooo-monero1-1/+2
This avoids using libunwind, which often causes trouble.
2017-01-16Change logging to easylogging++moneromooo-monero1-1339/+96
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2016-05-01core: move tx_extra parsing errors to log level 1moneromooo-monero1-1/+9
They're not fatal, though indicate something wrong
2016-04-02epee: flush output after a messagemoneromooo-monero1-0/+1
This is equivalent to line buffering, as C++ seems to lack a setvbuf equivalent which alows line buffering.
2016-03-21Revert "Print stack trace upon exceptions"moneromooo-monero1-1/+1
Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
2016-03-19Print stack trace upon exceptionsmoneromooo-monero1-1/+1
Useful for debugging users' logs
2016-01-03ARM chars are unsignedHoward Chu1-1/+1
2015-12-19epee: make log macros behave like statementsmoneromooo-monero1-22/+22
In particular, make this kind of thing do what one expects it to do: if (x) LOG_PRINT("True"); else LOG_PRINT("No");
2015-08-16epee: Don't set log file name when process path name isn't foundwarptangent1-1/+2
If process path name isn't found, then leave log file name blank. This also applies if a process name is found, but it's blank after removing a trailing dot extension.
2014-09-09moved non-critical warnings and errors to log level 1fluffypony1-0/+1
2014-07-25move modified epee code to new classes, revert licensefluffypony1-28/+25
2014-07-23License updated to BSD 3-clausefluffypony1-25/+28
2014-04-02json rpc for wallet and bugfixAntonio Juarez1-0/+3
2014-03-20some fixesAntonio Juarez1-15/+42
2014-03-03moved all stuff to githubAntonio Juarez1-0/+1426