another ref #45
|
|
@ -19,20 +19,6 @@ use tracing::info;
|
||||||
/// *depends on* : -
|
/// *depends on* : -
|
||||||
///
|
///
|
||||||
pub async fn setup_logger() -> Result<()> {
|
pub async fn setup_logger() -> Result<()> {
|
||||||
// Builder::new()
|
|
||||||
// .format(move |buf, record| {
|
|
||||||
// writeln!(
|
|
||||||
// buf,
|
|
||||||
// "|{}| {} [{}] - {}",
|
|
||||||
// "api-grubber",
|
|
||||||
// Local::now().format("%d-%m-%Y %H:%M:%S"),
|
|
||||||
// record.level(),
|
|
||||||
// record.args(),
|
|
||||||
// )
|
|
||||||
// })
|
|
||||||
// .filter(None, LevelFilter::Info)
|
|
||||||
// .target(env_logger::Target::Stdout)
|
|
||||||
// .init();
|
|
||||||
let log_level = std::env::var("IM_LOG_INFO").unwrap_or_else(|_| String::from("INFO"));
|
let log_level = std::env::var("IM_LOG_INFO").unwrap_or_else(|_| String::from("INFO"));
|
||||||
|
|
||||||
tracing_subscriber::fmt()
|
tracing_subscriber::fmt()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue