向nonebot对齐了一下日志输出

This commit is contained in:
2026-07-05 18:39:57 +08:00
parent 355cb36025
commit 1a645f9177
10 changed files with 260 additions and 169 deletions
+1 -3
View File
@@ -4,6 +4,4 @@ version = "0.1.0"
edition = "2024"
[dependencies]
entry = { path = "../entry" }
simplelog = "0.12.2"
entry = { path = "../entry" }
+5 -10
View File
@@ -1,19 +1,13 @@
use simplelog::{ColorChoice, Config, LevelFilter, TermLogger, TerminalMode};
use sekai_sync_lib::{boot, ghp, proxy};
use sekai_sync_lib::{boot, ghp, log_level, proxy};
fn main() {
let _proxy = "http://127.0.0.1:7890";
let _cwd = "D:\\Workspace\\sekai-sync-lib\\target";
let _name = "sekai-sync-lib";
let _as_path = "D:\\Workspace\\AssetStudio\\AssetStudioCLI\\bin\\Release\\net9.0\\AssetStudioModCLI.exe";
let _as_path =
"D:\\Workspace\\AssetStudio\\AssetStudioCLI\\bin\\Release\\net9.0\\AssetStudioModCLI.exe";
let _ghp = "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";
//
// TermLogger::init(
// LevelFilter::Debug,
// Config::default(),
// TerminalMode::Mixed,
// ColorChoice::Auto,
// ).unwrap();
let _log_level = "debug";
macro_rules! cstr {
($v:expr) => {
@@ -21,6 +15,7 @@ fn main() {
};
}
unsafe {
log_level(cstr!(_log_level));
proxy(cstr!(_proxy));
ghp(cstr!(_ghp));
boot(cstr!(_cwd), cstr!(_name), cstr!(_as_path));