From fb9f3a0d10bf6c697b39bcdda09ba28e8af42985 Mon Sep 17 00:00:00 2001 From: Michal Budzynski Date: Fri, 2 Jun 2017 22:47:07 +0200 Subject: [PATCH] Added "Errors" section to set_logger docs --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d3bc730..ce59c2a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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.