- 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`
11 lines
214 B
V
11 lines
214 B
V
module base
|
|
|
|
import freeflowuniverse.herolib.core.logger
|
|
|
|
pub fn (mut session Session) logger() !logger.Logger {
|
|
return session.logger_ or {
|
|
mut l2 := logger.new(path: '${session.path()!.path}/logs')!
|
|
l2
|
|
}
|
|
}
|