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

ohos-hilogs-binding

hilog binding for rust

1 unstable release

0.0.2 Jun 4, 2024

#2 in #ohos

Download history 178/week @ 2024-06-02 7/week @ 2024-06-09 2/week @ 2024-06-16

187 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
}

Dependencies

~3KB