浏览代码

[rust]: update flowy-log name

appflowy 3 年之前
父节点
当前提交
a06a2b9e5b

+ 1 - 1
rust-lib/Cargo.toml

@@ -3,7 +3,7 @@ members = [
   "lib-dispatch",
   "flowy-sdk",
   "dart-ffi",
-  "flowy-log",
+    "lib-log",
   "flowy-user",
   "flowy-user-infra",
   "flowy-ast",

+ 2 - 2
rust-lib/flowy-sdk/Cargo.toml

@@ -7,7 +7,7 @@ edition = "2018"
 
 [dependencies]
 lib-dispatch = { path = "../lib-dispatch" }
-flowy-log = { path = "../flowy-log" }
+lib-log = { path = "../lib-log" }
 flowy-user = { path = "../flowy-user" }
 lib-infra = { path = "../lib-infra" }
 flowy-workspace = { path = "../flowy-workspace", default-features = false }
@@ -34,4 +34,4 @@ futures-util = "0.3.15"
 
 [features]
 http_server = ["flowy-user/http_server", "flowy-workspace/http_server", "flowy-document/http_server"]
-use_bunyan = ["flowy-log/use_bunyan"]
+use_bunyan = ["lib-log/use_bunyan"]

+ 1 - 1
rust-lib/flowy-sdk/src/lib.rs

@@ -151,7 +151,7 @@ fn init_log(config: &FlowySDKConfig) {
     if !INIT_LOG.load(Ordering::SeqCst) {
         INIT_LOG.store(true, Ordering::SeqCst);
 
-        let _ = flowy_log::Builder::new("flowy-client", &config.root)
+        let _ = lib_log::Builder::new("flowy-client", &config.root)
             .env_filter(&config.log_filter)
             .build();
     }

+ 1 - 1
rust-lib/flowy-log/Cargo.toml → rust-lib/lib-log/Cargo.toml

@@ -1,5 +1,5 @@
 [package]
-name = "flowy-log"
+name = "lib-log"
 version = "0.1.0"
 edition = "2018"
 

+ 0 - 0
rust-lib/flowy-log/flowy_log_test.2021-11-09 → rust-lib/lib-log/flowy_log_test.2021-11-09


+ 0 - 0
rust-lib/flowy-log/src/layer.rs → rust-lib/lib-log/src/layer.rs


+ 0 - 0
rust-lib/flowy-log/src/lib.rs → rust-lib/lib-log/src/lib.rs