Skip to content

Commit

Permalink
add a few more notes to the source
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 16, 2024
1 parent 44b8e99 commit a6c4095
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/macros.rs
Expand Up @@ -29,7 +29,7 @@
/// ```
#[macro_export]
macro_rules! log {
// log!(target: "my_target", Level::Info, key1 = 42, key2 = true; "a {} event", "log");
// log!(target: "my_target", Level::Info, key1:? = 42, key2 = true; "a {} event", "log");
(target: $target:expr, $lvl:expr, $($key:tt $(:$capture:tt)? = $value:expr),+; $($arg:tt)+) => ({
let lvl = $lvl;
if lvl <= $crate::STATIC_MAX_LEVEL && lvl <= $crate::max_level() {
Expand Down Expand Up @@ -226,6 +226,9 @@ macro_rules! log_enabled {
};
}

// These macros use a pattern of #[cfg]s to produce nicer error
// messages when log features aren't available

#[doc(hidden)]
#[macro_export]
#[cfg(feature = "kv_unstable")]
Expand Down

0 comments on commit a6c4095

Please sign in to comment.