af_core/
log.rs

1// Copyright © 2020 Alexandra Frydl
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7//! Formatted logging using the [log](https://docs.rs/log) crate.
8
9pub use self::Level::*;
10pub use log::{debug, error, info, trace, warn, Level};
11
12use crate::prelude::*;
13
14cfg_if! {
15  if #[cfg(feature = "logger")] {
16    mod logger;
17
18    pub use self::logger::*;
19  }
20}