pub struct CyfsLoggerBuilder { /* private fields */ }Implementations§
Source§impl CyfsLoggerBuilder
impl CyfsLoggerBuilder
pub fn new_service(name: &str) -> Self
pub fn new_app(name: &str) -> Self
pub fn new(name: &str, category: CyfsLoggerCategory) -> Self
pub fn directory(self, dir: impl Into<PathBuf>) -> Self
pub fn level(self, level: &str) -> Self
pub fn console(self, level: &str) -> Self
pub fn file(self, enable: bool) -> Self
pub fn file_max_count(self, file_max_count: u32) -> Self
pub fn file_max_size(self, file_max_size: u64) -> Self
pub fn enable_bdt( self, level: Option<&str>, console_level: Option<&str>, ) -> Self
pub fn module( self, name: &str, level: Option<&str>, console_level: Option<&str>, ) -> Self
pub fn target(self, target: Box<dyn CyfsLogTarget>) -> Self
pub fn disable_module( self, list: Vec<impl Into<String>>, level: LogLevel, ) -> Self
pub fn disable_file_config(self, disable: bool) -> Self
pub fn debug_info_flags(self, flags: u32) -> Self
pub fn build(self) -> BuckyResult<CyfsLogger>
pub fn get_log_dir(name: &str, category: &CyfsLoggerCategory) -> PathBuf
Auto Trait Implementations§
impl Freeze for CyfsLoggerBuilder
impl !RefUnwindSafe for CyfsLoggerBuilder
impl Send for CyfsLoggerBuilder
impl Sync for CyfsLoggerBuilder
impl Unpin for CyfsLoggerBuilder
impl !UnwindSafe for CyfsLoggerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more