Files
herolib/examples/core/logger/logger.vsh
Mahmoud-Emad 52a1d2f80d feat: add real-time logging for tmux panes
- Introduce `tmux_logger` app for categorized output
- Implement pane logging via `tmux pipe-pane`
- Add `log`, `logpath`, `logreset` options to panes
- Update `Pane` struct with logging state and cleanup
- Refactor `logger.new` to use `LoggerFactoryArgs`
2025-09-01 19:48:15 +03:00

18 lines
357 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.logger
mut l := logger.new(path: '/tmp/vlogs')!
l.log(
cat: 'system'
log: 'System started successfully'
logtype: .stdout
)!
l.log(
cat: 'system'
log: 'Failed to connect\nRetrying in 5 seconds...'
logtype: .error
)!