[−][src]Struct fastlog::LogBuilder
Methods
impl LogBuilder
[src]
pub fn new() -> LogBuilder
[src]
pub fn format<F: 'static>(&mut self, format: F) -> &mut LogBuilder where
F: Fn(Timespec, &Record) -> String + Sync + Send,
[src]
F: Fn(Timespec, &Record) -> String + Sync + Send,
pub fn capacity(&mut self, capacity: usize) -> &mut LogBuilder
[src]
pub fn file(&mut self, path: PathBuf) -> &mut LogBuilder
[src]
pub fn max_log_level(&mut self, level: LevelFilter) -> &mut LogBuilder
[src]
pub fn header(&mut self, header: Vec<String>) -> &mut LogBuilder
[src]
pub fn build(self) -> Result<Logger, IoError>
[src]
Auto Trait Implementations
impl Send for LogBuilder
impl Sync for LogBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,