Struct amethyst::LoggerConfig[][src]

pub struct LoggerConfig {
    pub stdout: StdoutLog,
    pub level_filter: LevelFilter,
    pub log_file: Option<PathBuf>,
    pub allow_env_override: bool,
    pub log_gfx_backend_level: Option<LevelFilter>,
    pub log_gfx_rendy_level: Option<LevelFilter>,
    pub module_levels: Vec<(String, LevelFilter)>,

Logger configuration object.


stdout: StdoutLog

Determines whether to log to the terminal or not.

level_filter: LevelFilter

Sets the overarching level filter for the logger.

log_file: Option<PathBuf>

If set, enables logging to file at the given path.

allow_env_override: bool

If set, allows the config values to be overriden via the corresponding environmental variables.

log_gfx_backend_level: Option<LevelFilter>

Sets a different level for gfx_backend if Some

log_gfx_rendy_level: Option<LevelFilter>

Sets a different level for gfx_rendy if Some

module_levels: Vec<(String, LevelFilter)>

Sets the levels for specific modules.

Trait Implementations

impl Clone for LoggerConfig[src]

impl Debug for LoggerConfig[src]

impl Default for LoggerConfig[src]

impl<'de> Deserialize<'de> for LoggerConfig where
    LoggerConfig: Default

impl Serialize for LoggerConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for LoggerConfig[src]

impl Send for LoggerConfig[src]

impl Sync for LoggerConfig[src]

impl Unpin for LoggerConfig[src]

impl UnwindSafe for LoggerConfig[src]

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Clone for T where
    T: Clone

impl<T> Config for T where
    T: for<'a> Deserialize<'a> + Serialize

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> SetParameter for T

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

impl<T> Supports<T> for T

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,