feat: implement centralized logging helper
- remove direct log usage
- create a new logging helper
- update all log calls to use the new Logger instance
- set timestamp to ISO8601
🤖
This commit is contained in:
parent
ebc81657f5
commit
561419b568
6 changed files with 24 additions and 14 deletions
|
@ -2,7 +2,6 @@ package client
|
|||
|
||||
import (
|
||||
"flag"
|
||||
"github.com/charmbracelet/log"
|
||||
|
||||
"git.smsvc.net/pomodoro/ChronoTomato/internal/helper"
|
||||
"git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
|
||||
|
@ -87,6 +86,6 @@ func Start() {
|
|||
|
||||
_, err := tea.NewProgram(myApp()).Run()
|
||||
if err != nil {
|
||||
log.Fatal("Could not start program:", "msg", err)
|
||||
helper.Logger.Fatal("Could not start program:", "msg", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue