telemt/src
Vladimir Krivopalov dc088ea5d2
Add multi-destination logging: syslog and file support
Implement logging infrastructure for non-systemd platforms:

- Add src/logging.rs with syslog and file logging support
- New CLI flags: --syslog, --log-file, --log-file-daily
- Syslog uses libc directly with LOG_DAEMON facility
- File logging via tracing-appender with optional daily rotation

Update service scripts:
- OpenRC and FreeBSD rc.d now use --syslog by default
- Ensures logs are captured on platforms without journald

Default (stderr) behavior unchanged for systemd compatibility.
Log destination is selected at startup based on CLI flags.

Signed-off-by: Vladimir Krivopalov <argenet@yandex.ru>
2026-03-21 12:36:59 +02:00
..
api Merge remote-tracking branch 'origin/main' into feat/shadowsocks-upstream 2026-03-20 17:07:47 +03:00
config Merge remote-tracking branch 'origin/main' into feat/shadowsocks-upstream 2026-03-20 17:07:47 +03:00
crypto ME NoWait Routing + Upstream Connbudget + PROXY Header t/o + allocation cuts 2026-03-06 03:58:08 +03:00
daemon Add Unix daemon mode with PID file and privilege dropping 2026-03-21 12:36:59 +02:00
maestro Add multi-destination logging: syslog and file support 2026-03-21 12:36:59 +02:00
network Src-IP in ME Routing + more strict bind_addresses 2026-03-14 02:20:51 +03:00
protocol fix: resolve clippy warnings 2026-02-24 05:57:53 +03:00
proxy Merge branch 'main' into feat/shadowsocks-upstream 2026-03-19 17:19:01 +03:00
service Add multi-destination logging: syslog and file support 2026-03-21 12:36:59 +02:00
stats Teardown Monitoring in Metrics 2026-03-20 12:46:35 +03:00
stream Adaptive Buffers + Session Eviction Method 2026-03-18 10:49:02 +03:00
tls_front Merge remote-tracking branch 'origin/main' into feat/shadowsocks-upstream 2026-03-20 17:07:47 +03:00
transport Merge remote-tracking branch 'origin/main' into feat/shadowsocks-upstream 2026-03-20 17:07:47 +03:00
util fix: resolve clippy warnings 2026-02-24 05:57:53 +03:00
cli.rs Add multi-platform service manager integration 2026-03-21 12:36:59 +02:00
error.rs fix: resolve clippy warnings 2026-02-24 05:57:53 +03:00
ip_tracker.rs Inherited per-user unique IP limit 2026-03-15 12:43:31 +03:00
ip_tracker_regression_tests.rs Add health monitoring tests for draining writers 2026-03-17 17:11:51 +04:00
logging.rs Add multi-destination logging: syslog and file support 2026-03-21 12:36:59 +02:00
main.rs Add multi-destination logging: syslog and file support 2026-03-21 12:36:59 +02:00
metrics.rs Teardown Monitoring in API 2026-03-20 12:45:53 +03:00
startup.rs Init in API 2026-03-07 16:18:09 +03:00