Crate logflow

Crate logflow 

Source
Expand description

ยงLogflow

A beautiful, customizable, and performant logging library for Rust with perfect terminal UI.

ยงFeatures

  • ๐ŸŽจ Beautiful terminal output with rich colors and formatting
  • ๐Ÿš€ Zero-config defaults with extensive customization options
  • โšก High performance with minimal overhead
  • ๐Ÿ”„ Native async support with proper context propagation
  • ๐ŸŒณ Hierarchical/nested logging with visual indentation
  • ๐Ÿ”’ Thread-safe by design
  • ๐Ÿ“Š Multiple output formats (JSON, pretty, compact, custom)
  • ๐ŸŽฏ Real-time filtering and log level management

ยงQuick Start

use logflow::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let logger = LogFlow::new().with_colors(true).build()?;

    logger.info("Application started")?;
    logger.warn("This is a warning")?;
    logger.error("Something went wrong")?;
    Ok(())
}

Re-exportsยง

pub use config::*;
pub use context::*;
pub use formatter::*;
pub use level::*;
pub use logger::*;
pub use macros::*;
pub use async_logger::*;

Modulesยง

async_logger
config
context
formatter
level
logger
macros
output
prelude
Re-export commonly used types

Macrosยง

debug
error
fatal
info
log_field
log_scope
logflow_debug
logflow_error
logflow_fatal
logflow_info
logflow_trace
logflow_warn
trace
warn