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

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