Struct the_logger::TheLoggerConfig
source · pub struct TheLoggerConfig { /* private fields */ }
Expand description
TheLoggerConfig allows the user to configure on startup the logger’s output.
Implementations§
source§impl TheLoggerConfig
impl TheLoggerConfig
sourcepub async fn verbose(self) -> Self
pub async fn verbose(self) -> Self
Description
Configures the log level as verbose adding the [[VERBOSE]] tag
sourcepub async fn info(self) -> Self
pub async fn info(self) -> Self
Description
Configures the log level as informational adding the [[INFO]] tag
sourcepub async fn error(self) -> Self
pub async fn error(self) -> Self
Description
Configures the log level as error adding the [[ERROR]] tag
sourcepub async fn warning(self) -> Self
pub async fn warning(self) -> Self
Description
Configures the log level as warning adding the [[WARNING]] tag
sourcepub async fn debug(self) -> Self
pub async fn debug(self) -> Self
Description
Configures the log level as debug adding the [[DEBUG]] tag
sourcepub async fn trace(self) -> Self
pub async fn trace(self) -> Self
Description
Configures the log level as trace adding the [[TRACE]] tag
sourcepub async fn critical(self) -> Self
pub async fn critical(self) -> Self
Description
Configures the log level as critical adding the [[CRITICAL]] tag
sourcepub fn hide_years(self) -> Self
pub fn hide_years(self) -> Self
Description
Configures the log date to hide the years. Default is to show them
sourcepub fn hide_months(self) -> Self
pub fn hide_months(self) -> Self
Description
Configures the log date to hide the months. Default is to show them
sourcepub fn hide_days(self) -> Self
pub fn hide_days(self) -> Self
Description
Configures the log date to hide the days. Default is to show them
sourcepub fn hide_hours(self) -> Self
pub fn hide_hours(self) -> Self
Description
Configures the log time to hide the hours. Default is to show them
sourcepub fn hide_minutes(self) -> Self
pub fn hide_minutes(self) -> Self
Description
Configures the log time to hide the minutes. Default is to show them
sourcepub fn hide_seconds(self) -> Self
pub fn hide_seconds(self) -> Self
Description
Configures the log time to hide the seconds. Default is to show them
sourcepub fn hide_millisecs(self) -> Self
pub fn hide_millisecs(self) -> Self
Description
Configures the log time to hide the milliseconds. Default is to show them
Warning
Hiding the milliseconds and showing the microseconds would cause an unexpected time tracking in the logs,
therefore, in this specific case, both milliseconds and microseconds will be hidden
sourcepub fn hide_microsecs(self) -> Self
pub fn hide_microsecs(self) -> Self
Description
Configures the log time to hide the microseconds. Default is to show them
Warning
Hiding the milliseconds and showing the microseconds would cause an unexpected time tracking in the logs,
therefore, in this specific case, both milliseconds and microseconds will be hidden
sourcepub fn utc_time(self) -> Self
pub fn utc_time(self) -> Self
Description
Configures the log timezone to UTC format. Default is Local time
sourcepub fn hide_level(self) -> Self
pub fn hide_level(self) -> Self
Description
Configures the log level to be hidden. Default is to show it
sourcepub fn hide_file_name(self) -> Self
pub fn hide_file_name(self) -> Self
Description
Configures the log file location to be hidden. Default is to show it
sourcepub fn hide_file_line(self) -> Self
pub fn hide_file_line(self) -> Self
Description
Configures the log file line number to be hidden. Default is to show it
sourcepub fn hide_file_column(self) -> Self
pub fn hide_file_column(self) -> Self
Description
Configures the log file column number to be hidden. Default is to hide it
sourcepub fn show_years(self) -> Self
pub fn show_years(self) -> Self
Description
Configures the log date to show the years. Default is to show them
sourcepub fn show_months(self) -> Self
pub fn show_months(self) -> Self
Description
Configures the log date to show the months. Default is to show them
sourcepub fn show_days(self) -> Self
pub fn show_days(self) -> Self
Description
Configures the log date to show the days. Default is to show them
sourcepub fn show_hours(self) -> Self
pub fn show_hours(self) -> Self
Description
Configures the log time to show the hours. Default is to show them
sourcepub fn show_minutes(self) -> Self
pub fn show_minutes(self) -> Self
Description
Configures the log time to show the minutes. Default is to show them
sourcepub fn show_seconds(self) -> Self
pub fn show_seconds(self) -> Self
Description
Configures the log time to show the seconds. Default is to show them
sourcepub fn show_millisecs(self) -> Self
pub fn show_millisecs(self) -> Self
Description
Configures the log time to show the milliseconds. Default is to show them
Warning
Hiding the milliseconds and showing the microseconds would cause an unexpected time tracking in the logs,
therefore, in this specific case, both milliseconds and microseconds will be hidden
sourcepub fn show_microsecs(self) -> Self
pub fn show_microsecs(self) -> Self
Description
Configures the log time to show the microseconds. Default is to show them
Warning
Hiding the milliseconds and showing the microseconds would cause an unexpected time tracking in the logs,
therefore, in this specific case, both milliseconds and microseconds will be hidden
sourcepub fn local_time(self) -> Self
pub fn local_time(self) -> Self
Description
Configures the log timezone to Local format. Default is Local time
sourcepub fn show_level(self) -> Self
pub fn show_level(self) -> Self
Description
Configures the log level to be shown. Default is to show it
sourcepub fn show_file_name(self) -> Self
pub fn show_file_name(self) -> Self
Description
Configures the log file location to be shown. Default is to show it
sourcepub fn show_file_line(self) -> Self
pub fn show_file_line(self) -> Self
Description
Configures the log file line number to be shown. Default is to show it
sourcepub fn show_file_column(self) -> Self
pub fn show_file_column(self) -> Self
Description
Configures the log file column number to be shown. Default is to hide it
sourcepub fn location_content_length(self, length: usize) -> Self
pub fn location_content_length(self, length: usize) -> Self
Description
Configures the log file name, line and column location content’s length. Default is 100 characters
sourcepub fn log_content_length(self, length: usize) -> Self
pub fn log_content_length(self, length: usize) -> Self
Description
Configures the log message content’s length. Default is 300 characters