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§
Source§impl Clone for GodotLogger
impl Clone for GodotLogger
Source§fn clone(&self) -> GodotLogger
fn clone(&self) -> GodotLogger
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GodotLogger
impl Debug for GodotLogger
Source§impl Default for GodotLogger
impl Default for GodotLogger
Source§fn default() -> GodotLogger
fn default() -> GodotLogger
Returns the “default value” for a type. Read more
Source§impl Hash for GodotLogger
impl Hash for GodotLogger
Source§impl Ord for GodotLogger
impl Ord for GodotLogger
Source§fn cmp(&self, other: &GodotLogger) -> Ordering
fn cmp(&self, other: &GodotLogger) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GodotLogger
impl PartialEq for GodotLogger
Source§impl PartialOrd for GodotLogger
impl PartialOrd for GodotLogger
impl Copy for GodotLogger
impl Eq for GodotLogger
impl StructuralPartialEq for GodotLogger
Auto Trait Implementations§
impl Freeze for GodotLogger
impl RefUnwindSafe for GodotLogger
impl Send for GodotLogger
impl Sync for GodotLogger
impl Unpin for GodotLogger
impl UnwindSafe for GodotLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.