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]]
|
[[package]]
|
||||||
name = "actix-web-utils"
|
name = "actix-web-utils"
|
||||||
version = "0.1.9"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"log",
|
"log",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-web-utils"
|
name = "actix-web-utils"
|
||||||
version = "0.1.9"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Franklin E. Blanco"]
|
authors = ["Franklin E. Blanco"]
|
||||||
description = "Just some useful addons for actix web."
|
description = "Just some useful addons for actix web."
|
||||||
|
@ -2,7 +2,7 @@ use log::{SetLoggerError, LevelFilter};
|
|||||||
|
|
||||||
use crate::extensions::logger::SimpleLogger;
|
use crate::extensions::logger::SimpleLogger;
|
||||||
|
|
||||||
static LOGGER: SimpleLogger = SimpleLogger;
|
pub static LOGGER: SimpleLogger = SimpleLogger;
|
||||||
|
|
||||||
pub fn init_logger_default() -> Result<(), SetLoggerError> {
|
pub fn init_logger_default() -> Result<(), SetLoggerError> {
|
||||||
log::set_logger(&LOGGER)
|
log::set_logger(&LOGGER)
|
||||||
|
Loading…
Reference in New Issue
Block a user