25 releases (9 breaking)

0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.8.1 Nov 1, 2023
0.3.17 May 28, 2023
0.1.0 Sep 21, 2022

#263 in Unix APIs

Download history 459/week @ 2023-12-16 627/week @ 2023-12-23 242/week @ 2023-12-30 475/week @ 2024-01-06 375/week @ 2024-01-13 739/week @ 2024-01-20 226/week @ 2024-01-27 261/week @ 2024-02-03 272/week @ 2024-02-10 285/week @ 2024-02-17 464/week @ 2024-02-24 212/week @ 2024-03-02 269/week @ 2024-03-09 200/week @ 2024-03-16 317/week @ 2024-03-23 568/week @ 2024-03-30

1,387 downloads per month
Used in 58 crates (30 directly)

MIT/Apache

32KB
670 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–11MB
~84K SLoC