#binding #hilog #tags #ohos #domain #u32 #napi

ohos-hilog-binding

hilog binding for rust

1 unstable release

0.0.1 Mar 19, 2024

#8 in #ohos

Download history 116/week @ 2024-03-14 27/week @ 2024-03-21 15/week @ 2024-03-28 7/week @ 2024-04-04

72 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