LoggerUi

Struct LoggerUi 

Source
pub struct LoggerUi { /* private fields */ }
Expand description

The Ui for the Logger. You can use logger_ui() to get a default instance of the LoggerUi.

Implementations§

Source§

impl LoggerUi

Source

pub fn enable_regex(self, enable: bool) -> Self

Enable or disable the regex search. True by default.

Source

pub fn enable_ctx_menu(self, enable: bool) -> Self

Enable or disable the context menu. True by default.

Source

pub fn show_target(self, enable: bool) -> Self

Enable or disable showing the target in the context menu. True by default.

Source

pub fn include_target(self, enable: bool) -> Self

Enable or disable showing the target in the records. True by default.

Source

pub fn include_level(self, enable: bool) -> Self

Enable or disable showing the level in the records. True by default.

Source

pub fn enable_copy_button(self, enable: bool) -> Self

Enable or disable the copy button. True by default.

Source

pub fn enable_log_count(self, enable: bool) -> Self

Enable or disable the count of how many log messages there are. True by default.

Enable or disable the count of how many log messages there are. True by default.

Source

pub fn enable_max_log_output(self, enable: bool) -> Self

Enable or disable the configurable field for the maximum number of shown log output messages. True by default.

Source

pub fn enable_levels_button(self, enable: bool) -> Self

Enable or disable the button to configure the log levels. True by default.

Source

pub fn enable_categories_button(self, enable: bool) -> Self

Enable or disable the button to configure the log categories. True by default.

Source

pub fn enable_time_button(self, enable: bool) -> Self

Enable or disable the button to configure the time format. True by default.

Source

pub fn warn_color(self, color: Color32) -> Self

Set the color for warning messages.

Source

pub fn error_color(self, color: Color32) -> Self

Set the color for error messages.

Source

pub fn highlight_color(self, color: Color32) -> Self

Set the color for log messages that are neither errors nor warnings.

Source

pub fn log_levels(self, log_levels: [bool; 5]) -> Self

Set which log levels should be enabled. The log_levels are specified as a boolean array where the first element corresponds to the ERROR level and the last one to the TRACE level.

Source

pub fn enable_category(self, category: impl ToString, enable: bool) -> Self

Set which log levels should be enabled.

§Panics

Panics if the lock to the logger could not be acquired.

Source

pub fn max_log_length(self, max_length: usize) -> Self

Set the maximum number of log messages that should be retained.

Source

pub fn show(self, ui: &mut Ui)

This draws the Logger UI.

Trait Implementations§

Source§

impl Default for LoggerUi

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.