mirror of
https://github.com/rust-lang/log.git
synced 2026-03-13 17:37:53 +00:00
Added "Errors" section to set_logger docs
This commit is contained in:
parent
255cf726e0
commit
fb9f3a0d10
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user