ohos-hilogs-binding

Crates.ioohos-hilogs-binding
lib.rsohos-hilogs-binding
version0.0.2
sourcesrc
created_at2024-06-04 01:37:42.831205
updated_at2024-06-04 01:37:42.831205
descriptionhilog binding for rust
homepage
repository
max_upload_size
id1260616
size4,669
Richer (richerfu)

documentation

README

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
}
Commit count: 0

cargo fmt