Refactor logging system to switch between stdout and file logging
* Refactor logging to switch between stdout and file logging * Use "clear" instead of "tput reset" for unix * Remove redundant comments
This commit is contained in:
parent
e4f0a6646b
commit
a0845b4719
16 changed files with 252 additions and 148 deletions
30
engine/src/utils/splash.rs
Normal file
30
engine/src/utils/splash.rs
Normal file
|
@ -0,0 +1,30 @@
|
|||
use colored::Colorize;
|
||||
use log::info;
|
||||
|
||||
pub fn print_splash() {
|
||||
info!(
|
||||
"{}",
|
||||
format!(
|
||||
r#"
|
||||
&&&&&&&&&&&
|
||||
&&&&&&&&&&&&&&&&&
|
||||
&&&&&&&&&&&&&&&&&&&&&
|
||||
&& &&&&&&&&&
|
||||
&&&&&&&&&&&& &&&&&&&&&&&
|
||||
&&&&&&&&&&&&& &&&&&&&&&&&&
|
||||
&&&&&&&&&&&&& &&&&&&&&&&&&&
|
||||
&&&&&&&&&&&& &&&&&&&&&&&&&
|
||||
&&&&&&&&&&& &&&&&&&&&&&&
|
||||
&&&&&&&&& &&
|
||||
&&&&&&&&& &&
|
||||
&&&&&&&&&&&&&&&&&&&&&
|
||||
&&&&&&&&&&&&&&&&&
|
||||
&&&&&&&&&&&
|
||||
|
||||
Version: {}
|
||||
"#,
|
||||
env!("CARGO_PKG_VERSION").color("yellow")
|
||||
)
|
||||
.bright_black()
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue