log retention = 2 days

This commit is contained in:
ModulatingForce 2024-03-20 20:43:57 -04:00
commit a82b4f94ac
2 changed files with 24 additions and 0 deletions

View file

@ -16,8 +16,13 @@ pub type BotAR = Arc<RwLock<BotInstance>>;
pub async fn main() {
Log::set_file_ext(Extension::Log);
Log::set_level(Level::Trace);
Log::set_retention_days(2);
// Log::set_level(Level::Notice);
let bot = BotInstance::init().await;
{
@ -53,3 +58,6 @@ pub async fn main() {
let pstr = botlog::fatal("ERROR : EXIT Game loop", Some("main()".to_string()), None);
panic!("{}", pstr);
}