- 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`
18 lines
357 B
GLSL
Executable File
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
|
|
)!
|