Exported simplelogger

This commit is contained in:
Franklin 2022-08-29 13:28:36 -04:00
parent 8c66ec3f10
commit 91b7fa750d
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -183,7 +183,7 @@ dependencies = [
[[package]]
name = "actix-web-utils"
version = "0.1.9"
version = "0.2.0"
dependencies = [
"actix-web",
"log",

View File

@ -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."

View File

@ -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)