use fancy_log::{LogLevel, set_log_level};
use lazy_motd::lazy_motd;
use std::env;
pub fn setup() {
let level = env::var("LOG_LEVEL").unwrap_or_else(|_| "info".to_owned());
let log_level = match level.to_lowercase().as_str() {
"debug" => LogLevel::Debug,
"warn" => LogLevel::Warn,
"error" => LogLevel::Error,
_ => LogLevel::Info,
};
set_log_level(log_level);
}
pub fn print_motd() {
lazy_motd!(
environment = "None",
build = "Nightly",
copyright = &[
"Copyright (c) 2025 Canmi and contributors",
"Github OSS Released under the MIT License."
]
);
}