28 releases (10 breaking)

new 0.12.1 Apr 27, 2024
0.11.1 Apr 19, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.1.0 Sep 21, 2022

#258 in Unix APIs

Download history 279/week @ 2024-01-09 523/week @ 2024-01-16 549/week @ 2024-01-23 244/week @ 2024-01-30 227/week @ 2024-02-06 327/week @ 2024-02-13 366/week @ 2024-02-20 364/week @ 2024-02-27 203/week @ 2024-03-05 266/week @ 2024-03-12 207/week @ 2024-03-19 325/week @ 2024-03-26 400/week @ 2024-04-02 204/week @ 2024-04-09 583/week @ 2024-04-16 1169/week @ 2024-04-23

2,374 downloads per month
Used in 58 crates (30 directly)

MIT/Apache

33KB
697 lines

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!()

Dependencies

~1–9MB
~75K SLoC