Exported simplelogger
This commit is contained in:
parent
8c66ec3f10
commit
91b7fa750d
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -183,7 +183,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "actix-web-utils"
|
||||
version = "0.1.9"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"actix-web",
|
||||
"log",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "actix-web-utils"
|
||||
version = "0.1.9"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
authors = ["Franklin E. Blanco"]
|
||||
description = "Just some useful addons for actix web."
|
||||
|
@ -2,7 +2,7 @@ use log::{SetLoggerError, LevelFilter};
|
||||
|
||||
use crate::extensions::logger::SimpleLogger;
|
||||
|
||||
static LOGGER: SimpleLogger = SimpleLogger;
|
||||
pub static LOGGER: SimpleLogger = SimpleLogger;
|
||||
|
||||
pub fn init_logger_default() -> Result<(), SetLoggerError> {
|
||||
log::set_logger(&LOGGER)
|
||||
|
Loading…
Reference in New Issue
Block a user