Replace scattered println!/eprintln! with structured tracing macros throughout supervisor, scheduler, and web modules. Add LogConfig (file + level) to Config and a new logging module that initialises a stderr + optional non-blocking file appender on `warpgate run`. Remove the in-memory LogBuffer/LogEntry from AppState; the web /api/logs endpoint now reads the log file directly with from_line/lines pagination. `warpgate log` replaces journalctl with `tail`, and the Logs tab Alpine.js is updated to match the new API response shape. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
666 B
TOML
24 lines
666 B
TOML
[package]
|
|
name = "warpgate"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.101"
|
|
clap = { version = "4.5.59", features = ["derive"] }
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.149"
|
|
thiserror = "2.0.18"
|
|
toml = "1.0.2"
|
|
ctrlc = "3.4"
|
|
libc = "0.2"
|
|
ureq = { version = "3.2.0", features = ["json"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
|
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
|
axum = "0.8"
|
|
askama = "0.15"
|
|
tower-http = { version = "0.6", features = ["cors"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|