Struct sozu_command_lib::logging::Logger
source · [−]pub struct Logger {
pub directives: Vec<LogDirective>,
pub backend: LoggerBackend,
pub access_backend: Option<LoggerBackend>,
pub tag: String,
pub pid: i32,
pub initialized: bool,
}
Fields
directives: Vec<LogDirective>
backend: LoggerBackend
access_backend: Option<LoggerBackend>
tag: String
pid: i32
initialized: bool
Implementations
sourceimpl Logger
impl Logger
pub fn new() -> Logger
pub fn init(
tag: String,
spec: &str,
backend: LoggerBackend,
access_backend: Option<LoggerBackend>
)
pub fn log(&mut self, meta: &Metadata, args: Arguments<'_>)
pub fn log_access(&mut self, meta: &Metadata, args: Arguments<'_>)
pub fn compat_log(&mut self, meta: &Metadata<'_>, args: Arguments<'_>)
pub fn set_directives(&mut self, directives: Vec<LogDirective>)
Auto Trait Implementations
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more