rktk-log 0.2.0

rktk log management
Documentation
  • Coverage
  • 0%
    0 out of 21 items documented0 out of 3 items with examples
  • Size
  • Source code size: 9.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.42 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nazo6/rktk
    13 1 13
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nazo6

rktk-log

logger for rktk

Credits

About

crate which uses macro in this crate must add below deps and features to Cargo.toml to work correctly.

[dependencies]
rktk-log = { version = "" }
log = { version="", optional = true }
defmt = { version="", optional = true }

[features]
defmt = ["dep:defmt", "rktk-log/defmt"]
log = ["dep:log", "rktk-log/log"]

Also you should consider to modify defmt to feature if your depedency provides feature for defmt.

Viewing defmt-usb log

By using my defmt-print fork, you can print log from usb (serialport).

Usage

# Install
cargo install --git https://github.com/nazo6/defmt --branch defmt-print-serial defmt-print

# Connect
defmt-print <elf binary path> serial COM1 # Change COM1 to your serial port

To find com port, you can use software such as USB Device Tree Viewer on windows.