common: dedup and move banner to common/logging (#2846)
This commit is contained in:
@@ -23,3 +23,20 @@ pub fn setup_logging() {
|
||||
.filter_module("sled", log::LevelFilter::Warn)
|
||||
.init();
|
||||
}
|
||||
|
||||
pub fn banner(crate_name: &str, crate_version: &str) -> String {
|
||||
format!(
|
||||
r#"
|
||||
|
||||
_ __ _ _ _ __ ___
|
||||
| '_ \| | | | '_ \ _ \
|
||||
| | | | |_| | | | | | |
|
||||
|_| |_|\__, |_| |_| |_|
|
||||
|___/
|
||||
|
||||
({:} - version {:})
|
||||
|
||||
"#,
|
||||
crate_name, crate_version
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user