Module action_logger

Module action_logger 

Source
Expand description

Action logging with pattern-based filtering

Provides configurable action logging using glob patterns to include/exclude specific actions from logs.

§Example

use tui_dispatch_core::debug::{ActionLoggerConfig, ActionLoggerMiddleware};

// Log all actions except Tick and Render
let config = ActionLoggerConfig::default();

// Log only Search* and Connect* actions
let config = ActionLoggerConfig::new(Some("Search*,Connect*"), None);

// Log Did* actions but exclude DidFail*
let config = ActionLoggerConfig::new(Some("Did*"), Some("DidFail*"));

let middleware = ActionLoggerMiddleware::new(config);

Structs§

ActionLoggerConfig
Configuration for action logging with glob pattern filtering.
ActionLoggerMiddleware
Middleware that logs actions with configurable pattern filtering.

Functions§

glob_match
Simple glob pattern matching supporting * and ?.