#ohos #binding #hilog #tags #domain

ohos-hilogs-binding

hilog binding for rust

1 unstable release

0.0.2 Jun 4, 2024

#573 in Debugging

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