macro_rules! create_console_layer {
($enabled:expr, $log_level:expr) => { ... };
}Expand description
Creates a console logging layer that outputs to stdout.
This macro conditionally creates a console logging layer based on the enabled flag. When enabled, it creates a formatted layer that writes to stdout with RFC 3339 timestamps and applies the specified log level filter.
§Arguments
$enabled- Boolean expression indicating whether console logging should be enabled$log_level- Log level filter to apply to the layer
§Returns
Some(Layer)- Configured console layer if enabledNone- If console logging is disabled