Compare commits
No commits in common. "903ace3197d3298713ac14f75dcce5cef7300368" and "0a1324b28adba198c99facbf937cc58b0705df63" have entirely different histories.
903ace3197
...
0a1324b28a
|
|
@ -19,6 +19,20 @@ 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