[][src]Struct amethyst::Logger

pub struct Logger { /* fields omitted */ }

Allows the creation of a logger with a set of custom configurations. If no custom configuration is required [start_logger] can be used instead.


    .level_for("gfx_device_gl", amethyst::LogLevelFilter::Warn)
    .level_for("gfx_glyph", amethyst::LogLevelFilter::Error)


impl Logger[src]

pub fn from_config(config: LoggerConfig) -> Self[src]

Create a new Logger from [LoggerConfig]

pub fn level_for<T: Into<Cow<'static, str>>>(
    module: T,
    level: LevelFilter
) -> Self

Set individual log levels for modules.

pub fn start(self)[src]

Starts [Logger] by consuming it.

Auto Trait Implementations

impl Send for Logger

impl !Sync for Logger

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.