mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-26 08:34:55 +01:00
13 lines
379 B
Rust
13 lines
379 B
Rust
use slog::{Drain, Logger};
|
|
use slog_async;
|
|
use slog_term::{TermDecorator, FullFormat};
|
|
use crate::config::Settings;
|
|
|
|
pub fn init(_config: &Settings) -> Logger {
|
|
let decorator = TermDecorator::new().build();
|
|
let drain = FullFormat::new(decorator).build().fuse();
|
|
let drain = slog_async::Async::new(drain).build().fuse();
|
|
|
|
return slog::Logger::root(drain, o!());
|
|
}
|