workflow-log

Crates.ioworkflow-log
lib.rsworkflow-log
version0.14.0
sourcesrc
created_at2022-08-22 10:41:07.685118
updated_at2024-07-09 22:20:07.316854
descriptionLog macros & utilities abstracting native & in-browser logging interfaces
homepage
repositoryhttps://github.com/workflow-rs/workflow-rs
max_upload_size
id650284
size32,647
surinder singh (surinder83singh)

documentation

README

workflow-log

Part of the workflow-rs application framework.


Application logging functionality

github crates.io docs.rs license

Features

  • Log output functions that functions uniformly on supported platforms.
    • Native uses stdout
    • WASM (browser) uses console.log() and similar functions.
    • Solana OS (BPF) uses solana_program::log::sol_log() (same as msg!() macro)
  • Attach to the standard log crate.
  • Register a custom log sink to consume all application output externally.
  • Re-export and a custom bypass for console crate, allowing to use ANSI terminal features while discarding them when running under BPF.

This crate offers the following macros:

  • log_trace!()
  • log_debug!()
  • log_info!()
  • log_warn!()
  • log_error!()
Commit count: 513

cargo fmt