Lines Matching refs:from

100 //! in question originated from, though it can be overriden.
120 //! variations of the [`log::Level`][level-enum] enum from the `log`
221 //! Parts of the default format can be excluded from the log output using the [`Builder`].
222 //! The following example excludes the timestamp from the log output:
258 //! `env_logger` can read configuration from environment variables.
300 /// The default name for the environment variable to read filters from.
303 /// The default name for the environment variable to read style preferences from.
306 /// Set of environment variables to configure from.
330 /// This struct implements the `Log` trait from the [`log` crate][log-crate-url],
387 /// **NOTE:** This method won't read from any environment variables.
415 /// Initializes the log builder from the environment.
417 /// The variables used to read configuration from can be tweaked before
422 /// Initialise a logger reading the log filter from an environment variable
452 /// Applies the configuration from the environment.
460 /// filter from an environment variable called `MY_LOG`:
505 /// Initializes the log builder from the environment using default variable names.
527 /// Applies the configuration from the environment using default variable names.
836 /// Creates the logger from the environment.
838 /// The variables used to read configuration from can be tweaked before
843 /// Create a logger reading the log filter from an environment variable
869 /// Creates the logger from the environment using default variable names.
937 // Check the buffer style. If it's different from the logger's
979 /// Specify an environment variable to read the filter from.
989 /// Specify an environment variable to read the filter from.
1002 /// Use the default environment variable to read the filter from.
1018 /// Specify an environment variable to read the style from.
1028 /// Specify an environment variable to read the style from.
1041 /// Use the default environment variable to read the style from.
1091 fn from(filter_env: T) -> Self {
1157 /// Attempts to initialize the global logger with an env logger from the given
1194 /// Initializes the global logger with an env logger from the given environment
1235 /// Create a builder from the given environment variables.
1255 env::set_var("env_get_filter_reads_from_var_if_set", "from var");
1257 let env = Env::new().filter_or("env_get_filter_reads_from_var_if_set", "from default");
1259 assert_eq!(Some("from var".to_owned()), env.get_filter());
1268 "from default",
1271 assert_eq!(Some("from default".to_owned()), env.get_filter());
1276 env::set_var("env_get_write_style_reads_from_var_if_set", "from var");
1279 Env::new().write_style_or("env_get_write_style_reads_from_var_if_set", "from default");
1281 assert_eq!(Some("from var".to_owned()), env.get_write_style());
1290 "from default",
1293 assert_eq!(Some("from default".to_owned()), env.get_write_style());