#napi #hilog #bindings #ohos #debugging #tags #domain

hilog-binding

hilog binding for rust

4 releases

0.0.4 Mar 7, 2024
0.0.3 Mar 7, 2024
0.0.2 Jan 11, 2024
0.0.1 Jan 11, 2024

#2 in #ohos

Download history 7/week @ 2024-07-26 11/week @ 2024-08-02 5/week @ 2024-08-09 11/week @ 2024-08-16 2/week @ 2024-08-23 4/week @ 2024-09-20 1/week @ 2024-09-27

76 downloads per month

MIT/Apache

5KB
108 lines

hilog_binding

Install

cargo add hilog_binding

Usage

use hilog_binding::hilog_debug;
use napi_derive_ohos::napi;

#[napi]
pub fn add(left: u32, right: u32) -> u32 {
    hilog_debug!("hello world");
    hilog_debug!(
        "test",
        LogOptions {
          tag: Some("testTag"),
          domain: None
      }
    );
    left + right
}

No runtime deps