use loggur::{Loggur, Level, info, error, progress_inc};
use std::thread;
use std::time::Duration;
fn main() {
let _guard = Loggur::init_with_file(Level::INFO, "./log_file.log");
println!("파일 로깅이 초기화되었습니다.");
info!("이 메시지는 콘솔과 파일 모두에 기록됩니다");
error!("이 오류는 콘솔과 파일 모두에 기록됩니다");
info!(user = "ferris", action = "login", "사용자가 로그인했습니다");
info!("파일 처리를 시작합니다");
thread::sleep(Duration::from_millis(500));
info!("파일 처리가 완료되었습니다");
println!("\n로그 파일을 확인해보세요: ./log_file.log");
}