Add start server command and logging setup for CLI

This commit is contained in:
GW_MC
2025-12-05 18:03:17 +08:00
parent d2b842d933
commit 65d40c1e83
5 changed files with 192 additions and 163 deletions

7
apps/api/src/log.rs Normal file
View File

@@ -0,0 +1,7 @@
pub fn make_temporary_subscriber() -> tracing_subscriber::fmt::Subscriber {
tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG)
.with_target(false)
.with_level(true)
.finish()
}