docs.rs failed to build ohos-hilog-binding-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
ohos-hilog-binding
Install
cargo add ohos-hilog-binding
Usage
use hilog_debug;
use napi;
Feature
redirect
Allow us redirect stdout/stderr to hilog.
# Cargo.toml
[]
= { = "*", = ["redirect"]}
use napi;
log
Allow us use log as log library.
For log trace level, we will convert to debug level which is not supported in OHOS.
# Cargo.toml
[]
= { = "*", = ["log"]}
= { = "*" }
use napi;
use ;
use Config;