Struct godot_logger::GodotLogger [−][src]
pub struct GodotLogger;Expand description
A logger that prints to the output console of the Godot game engine
GodotLogger is a logger implementation that prints log records to the output console inside
the Godot game engine. The log level can be set per Rust module, similar to other logging
frameworks in Rust.
The recommended way to initialize the logger is by using the crate’s Builder. Its setters
can be used to configure the logger and overwrite the default configuration.
Examples
use godot_logger::GodotLogger;
use log::{Level, LevelFilter};
// Configure and initialize the logger
GodotLogger::builder()
.default_log_level(Level::Debug)
.add_filter("godot-logger", LevelFilter::Warn)
.init();Implementations
Trait Implementations
Returns the “default value” for a type. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for GodotLogger
impl Send for GodotLogger
impl Sync for GodotLogger
impl Unpin for GodotLogger
impl UnwindSafe for GodotLogger
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
Compare self to key and return true if they are equal.