Lines Matching refs:config
85 pub fn init(config: Config) -> bool { in init()
92 if let Some(log_level) = config.log_level { in init()
95 if let Some(custom_format) = config.custom_format { in init()
103 if let Some(filter_str) = config.filter { in init()
113 pub fn init(config: Config) -> bool { in init()
122 if let Some(log_level) = config.log_level { in init()
125 if let Some(custom_format) = config.custom_format { in init()
131 if let Some(filter_str) = config.filter { in init()
135 if let Some(tag) = config.tag { in init()
152 let config = Config::default() in test_with_max_level() localVariable
156 assert_eq!(config.log_level, Some(log::LevelFilter::Error)); in test_with_max_level()
162 let config = Config::default().with_filter(filter); in test_with_filter() localVariable
164 assert_eq!(config.filter.unwrap(), filter) in test_with_filter()
169 let config = Config::default().with_tag_on_device("my_app"); in test_with_tag_on_device() localVariable
171 assert_eq!(config.tag.unwrap(), CString::new("my_app").unwrap()); in test_with_tag_on_device()
176 let config = Config::default().format(|record| format!("my_app: {}", record.args())); in test_format() localVariable
178 assert!(config.custom_format.is_some()); in test_format()