Replace logging backend to log4rs and add log rotation (#1789)
* Replace logging backend to flexi-logger and add log rotation * Changed flexi_logger to log4rs * Disable logging level filtering in Root logger * Support different logging levels for file and stdout * Don't log messages from modules other than Grin-related * Fix formatting * Place backed up compressed log copies into log file directory * Increase default log file size to 16 MiB * Add comment to config file on log_max_size option
This commit is contained in:
+1
-2
@@ -37,7 +37,6 @@ use servers::Server;
|
||||
use tui::constants::ROOT_STACK;
|
||||
use tui::types::{TUIStatusListener, UIMessage};
|
||||
use tui::{menu, mining, peers, status, version};
|
||||
use util::LOGGER;
|
||||
|
||||
use built_info;
|
||||
|
||||
@@ -172,7 +171,7 @@ impl Controller {
|
||||
let mut next_stat_update = Utc::now().timestamp() + stat_update_interval;
|
||||
while self.ui.step() {
|
||||
if !running.load(Ordering::SeqCst) {
|
||||
warn!(LOGGER, "Received SIGINT (Ctrl+C).");
|
||||
warn!("Received SIGINT (Ctrl+C).");
|
||||
server.stop();
|
||||
self.ui.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user