Searched refs:rotate (Results 1 – 7 of 7) sorted by relevance
| /xiu/library/logger/src/ |
| H A D | logger.rs | 40 fn get_log_file_name(rotate: Rotate) -> String { in get_log_file_name() 42 match rotate { in get_log_file_name() 73 pub fn gen_log_file(rotate: Rotate, path: String) -> Result<File> { in gen_log_file() 74 let file_name = get_log_file_name(rotate); in gen_log_file() 89 rotate: Rotate, in gen_log_file_thread_run() 96 let scheduler_rule = match rotate { in gen_log_file_thread_run() 115 match gen_log_file(rotate.to_owned(), path.to_owned()) { in gen_log_file_thread_run() 140 pub fn new(level: &String, rotate: Option<Rotate>, path: Option<String>) -> Result<Logger> { in new() 141 if rotate.is_none() || path.is_none() { in new() 155 let rotate_val = rotate.unwrap(); in new()
|
| /xiu/application/xiu/src/ |
| H A D | main.rs | 168 let (rotate, path) = if let Some(file_info) = &log_config_value.file { in main() 171 Some(Rotate::from_str(&file_info.rotate).unwrap()), in main() 180 Logger::new(&log_config_value.level, rotate, path)? in main()
|
| /xiu/application/xiu/src/config/ |
| H A D | config.toml | 69 rotate = "hour" #[day,hour,minute]
|
| H A D | mod.rs | 155 pub rotate: String, field
|
| /xiu/ |
| H A D | README_CN.md | 182 # set the rotate 183 rotate = "hour" #[day,hour,minute]
|
| H A D | README.md | 190 # set the rotate 191 rotate = "hour" #[day,hour,minute]
|
| /xiu/application/xiu/ |
| H A D | README.md | 185 # set the rotate 186 rotate = "hour" #[day,hour,minute]
|