From 91b7fa750d0a6b276c6d3f23960bde92868dce5d Mon Sep 17 00:00:00 2001 From: Franklin Date: Mon, 29 Aug 2022 13:28:36 -0400 Subject: [PATCH] Exported simplelogger --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/utils/logger_util.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3bbc49c..ed4a445 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "actix-web-utils" -version = "0.1.9" +version = "0.2.0" dependencies = [ "actix-web", "log", diff --git a/Cargo.toml b/Cargo.toml index f64c393..3459c5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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." diff --git a/src/utils/logger_util.rs b/src/utils/logger_util.rs index 1eb8d18..585d45e 100644 --- a/src/utils/logger_util.rs +++ b/src/utils/logger_util.rs @@ -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)