adjust log file days from 7 days to 31 days
This commit is contained in:
		
							parent
							
								
									f997a1ff52
								
							
						
					
					
						commit
						278d593580
					
				| @ -41,6 +41,7 @@ pub use chrono; | ||||
| pub use directories_next; | ||||
| pub use libc; | ||||
| pub mod keyboard; | ||||
| pub use base64; | ||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||
| pub use dlopen; | ||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||
| @ -48,10 +49,9 @@ pub use machine_uid; | ||||
| pub use serde_derive; | ||||
| pub use serde_json; | ||||
| pub use sysinfo; | ||||
| pub use thiserror; | ||||
| pub use toml; | ||||
| pub use uuid; | ||||
| pub use base64; | ||||
| pub use thiserror; | ||||
| 
 | ||||
| pub type Stream = tcp::FramedStream; | ||||
| pub type SessionID = uuid::Uuid; | ||||
| @ -384,7 +384,7 @@ pub fn init_log(_is_async: bool, _name: &str) -> Option<flexi_logger::LoggerHand | ||||
|                     .rotate( | ||||
|                         Criterion::Age(Age::Day), | ||||
|                         Naming::Timestamps, | ||||
|                         Cleanup::KeepLogFiles(6), | ||||
|                         Cleanup::KeepLogFiles(31), | ||||
|                     ) | ||||
|                     .start() | ||||
|                     .ok(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user