Skip to main content

Logger

Struct Logger 

Source
pub struct Logger { /* private fields */ }

Implementations§

Source§

impl Logger

Source

pub fn finalize()

Source

pub fn initialize() -> Logger

Source

pub fn with_file( self, file_path: &str, file_name: &str, ) -> Result<Logger, Error>

Source

pub fn with_compress(self, compress: bool) -> Result<Logger, LoggerError>

Source

pub fn with_logger_core(self, core: i32) -> Logger

Source

pub fn with_roll_period( self, period: RollingPeriod, ) -> Result<Logger, LoggerError>

Source

pub fn include_unixnano(self, include: bool) -> Logger

Source

pub fn with_max_roll_files( self, max_roll_files: usize, ) -> Result<Logger, LoggerError>

Source

pub fn with_console_report(self, console_report: bool) -> Logger

Source

pub fn with_msg_buffer_size(self, size: usize) -> Logger

Source

pub fn with_msg_flush_interval(self, interval: u64) -> Logger

Source

pub fn with_max_log_level(self, level: LogLevel) -> Logger

👎Deprecated since 0.3.0: it is recommended to use compile time filter options and use flash_xxxx_ct! instead
Source

pub fn with_timezone(self, timezone: TimeZone) -> Logger

Source

pub fn launch(self) -> LoggerGuard

Auto Trait Implementations§

§

impl Freeze for Logger

§

impl RefUnwindSafe for Logger

§

impl Send for Logger

§

impl Sync for Logger

§

impl Unpin for Logger

§

impl UnwindSafe for Logger

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.