Struct cyfs_debug::CyfsLoggerBuilder
source · [−]pub struct CyfsLoggerBuilder { /* private fields */ }Implementations
sourceimpl 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 build(self) -> BuckyResult<CyfsLogger>
pub fn get_log_dir(name: &str, category: &CyfsLoggerCategory) -> PathBuf
Auto Trait Implementations
impl !RefUnwindSafe for CyfsLoggerBuilder
impl Send for CyfsLoggerBuilder
impl Sync for CyfsLoggerBuilder
impl Unpin for CyfsLoggerBuilder
impl !UnwindSafe for CyfsLoggerBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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