pub struct EZLogConfigBuilder { /* private fields */ }Expand description
The builder of EZLogConfig
Implementations§
Source§impl EZLogConfigBuilder
impl EZLogConfigBuilder
pub fn new() -> Self
pub fn version(self, version: Version) -> Self
pub fn level(self, level: Level) -> Self
pub fn dir_path(self, dir_path: String) -> Self
pub fn name(self, name: String) -> Self
pub fn file_suffix(self, file_suffix: String) -> Self
pub fn trim_duration(self, duration: Duration) -> Self
pub fn max_size(self, max_size: u64) -> Self
pub fn compress(self, compress: CompressKind) -> Self
pub fn compress_level(self, compress_level: CompressLevel) -> Self
pub fn cipher(self, cipher: CipherKind) -> Self
pub fn cipher_key(self, cipher_key: Vec<u8>) -> Self
pub fn cipher_nonce(self, cipher_nonce: Vec<u8>) -> Self
pub fn from_header(self, header: &Header) -> Self
pub fn rotate_duration(self, duration: Duration) -> Self
pub fn extra(self, extra: String) -> Self
pub fn build(self) -> EZLogConfig
Trait Implementations§
Source§impl Clone for EZLogConfigBuilder
impl Clone for EZLogConfigBuilder
Source§fn clone(&self) -> EZLogConfigBuilder
fn clone(&self) -> EZLogConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EZLogConfigBuilder
impl Debug for EZLogConfigBuilder
Auto Trait Implementations§
impl Freeze for EZLogConfigBuilder
impl RefUnwindSafe for EZLogConfigBuilder
impl Send for EZLogConfigBuilder
impl Sync for EZLogConfigBuilder
impl Unpin for EZLogConfigBuilder
impl UnwindSafe for EZLogConfigBuilder
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