Struct sozu_command_lib::logging::Logger [−][src]
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
impl Logger
[src]
impl Logger
[src]pub fn new() -> Logger
[src]
pub fn init(
tag: String,
spec: &str,
backend: LoggerBackend,
access_backend: Option<LoggerBackend>
)
[src]
tag: String,
spec: &str,
backend: LoggerBackend,
access_backend: Option<LoggerBackend>
)
pub fn log(&mut self, meta: &Metadata, args: Arguments<'_>)
[src]
pub fn log_access(&mut self, meta: &Metadata, args: Arguments<'_>)
[src]
pub fn compat_log(&mut self, meta: &Metadata<'_>, args: Arguments<'_>)
[src]
pub fn set_directives(&mut self, directives: Vec<LogDirective>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Logger
impl RefUnwindSafe for Logger
impl UnwindSafe for Logger
impl UnwindSafe for Logger