Sebastian Mark
600d2ed2ff
- remove direct log usage
- create a new logging helper
- update all log calls to use the new Logger instance
- set timestamp to ISO8601
🤖
12 lines
189 B
Go
12 lines
189 B
Go
package helper
|
|
|
|
import (
|
|
"github.com/charmbracelet/log"
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
var Logger = log.NewWithOptions(os.Stdout, log.Options{
|
|
ReportTimestamp: true,
|
|
TimeFormat: time.RFC3339,
|
|
})
|