refactor(core): move log handler to shared platform core

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
caoqianming 2026-04-17 13:36:26 +08:00
parent 9955498e24
commit 4761e88c81
4 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,9 @@
pub mod control;
pub mod doc;
pub mod equipment;
pub mod log;
pub mod log {
pub use plc_platform_core::handler::log::*;
}
pub mod page;
pub mod point;
pub mod source;

View File

@ -0,0 +1 @@
pub mod log;

View File

@ -20,7 +20,7 @@ use tokio::{
time::{Duration, interval},
};
use plc_platform_core::util::response::ApiErr;
use crate::util::response::ApiErr;
const LOG_DIR: &str = "./logs";
const DEFAULT_TAIL_LINES: usize = 200;

View File

@ -3,6 +3,7 @@ pub mod connection;
pub mod control;
pub mod db;
pub mod event;
pub mod handler;
pub mod model;
pub mod platform_context;
pub mod service;