#open-harmony #logging #hilog

hilog

A log and env_filter compatible logging sink for HiLog on OpenHarmony

3 unstable releases

new 0.2.0 Apr 10, 2025
0.1.1 Oct 27, 2024
0.1.0 Apr 25, 2024

#304 in Debugging

Download history 612/week @ 2024-12-24 554/week @ 2024-12-31 1215/week @ 2025-01-07 1048/week @ 2025-01-14 1416/week @ 2025-01-21 1095/week @ 2025-01-28 1733/week @ 2025-02-04 1168/week @ 2025-02-11 1522/week @ 2025-02-18 1963/week @ 2025-02-25 1309/week @ 2025-03-04 1231/week @ 2025-03-11 1394/week @ 2025-03-18 1740/week @ 2025-03-25 1409/week @ 2025-04-01 1362/week @ 2025-04-08

6,116 downloads per month

Apache-2.0

17KB
275 lines

log compatible logger to the HiLog logging system on OpenHarmony

This crate is in its very early stages and still under development, it was partially inspired by env_logger.

Features

  • Permits filtering based on the env_filter spec via the crate.
  • Permits dynamic replacement of filters in an atomic manner, making changes available to subsequent invocations on other threads without invalidating the state of any running threads.

Hilog

This crate provides a log compatible logger that writes messages to the HiLog logging system on OpenHarmony devices.

This crate is partially based on env_logger and android_logger.

License

This crate is licensed under the Apache-2.0 license.

Dependencies

~3–4.5MB
~71K SLoC