fix(logger): change the JSON format filename to logs.jsonl
This commit is contained in:
parent
66948117c9
commit
00b3e8f088
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func Load(format Format, level slog.Level) error {
|
|||
|
||||
h = slog.NewTextHandler(file, opts)
|
||||
case FormatJson:
|
||||
path := filepath.Join(path, "logs.json")
|
||||
path := filepath.Join(path, "logs.jsonl")
|
||||
file, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, os.ModePerm)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue