feat: initial work on MongoDB support

This commit is contained in:
2024-01-06 00:03:23 +07:00
parent 60039bbaa5
commit 30a7098bed
6 changed files with 687 additions and 39 deletions

View File

@ -3,10 +3,11 @@ pub use log;
pub use tracing::{debug, error, info, trace, warn};
use tracing_subscriber::{self, fmt, EnvFilter};
pub mod constants;
pub mod database;
pub mod structs;
pub mod tesseract;
pub fn setup_logger(level: &str) -> Result<(), fern::InitError> {
pub fn setup_logger(level: &str) -> Result<(), ()> {
let formatter = fmt::format()
.with_level(true)
.with_target(true)