Commit Graph
4 Commits
Author SHA1 Message Date
kor-elf 6148b0a06d Refactor: reuse NewFalseLogger in NewLogger implementation 2026-09-04 20:59:13 +05:00
kor-elf 859e7ad4da Add "reopen_logger" command to daemon for log file management
- Introduced `CmdReopenLogger` for reopening daemon log files.
- Added `ReOpen` method to `Logger` interface and its implementations.
- Updated daemon logic to handle the "reopen_logger" command via Unix socket communication.
- Extended localization files with translations for new command messages.
- Registered `CmdReopenLogger` in the main CLI application.
2025-11-02 22:41:39 +05:00
kor-elf e5ae14d855 Add Fatal method to Logger interface and implement os.Exit(1) behavior
- Introduced `Fatal` method for structured logging with immediate program exit.
- Updated `falseLogger` to implement `Fatal` method.
- Added `zap.AddCallerSkip(1)` for accurate caller information in logs.
- Adjusted `LoggerOptions` argument in `NewLogger` for consistency.
2025-10-13 20:39:20 +05:00
kor-elf 1ef42ce3ba Add Logger interface and implementation using zap for structured logging 2025-10-12 17:21:25 +05:00