Added "Errors" section to set_logger docs

This commit is contained in:
Michal Budzynski 2017-06-02 22:47:07 +02:00
parent 255cf726e0
commit fb9f3a0d10

View File

@ -863,6 +863,11 @@ pub fn max_level() -> LevelFilter {
///
/// Requires the `use_std` feature (enabled by default).
///
/// # Errors
///
/// This function fails to set the global logger if it has already
/// been called before.
///
/// ## Example
///
/// Implements a custom logger `ConsoleLogger` which prints to stdout.