Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
{"level":"error","error":"open : no such file or directory","time":"2023-03-10T00:29:08-08:00","message":"Failed to create MultiLogger"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xee7b54]
goroutine 8 [running]:
github.com/rs/zerolog.(*Logger).should(0x1c?, 0x45?)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:405 +0x14
github.com/rs/zerolog.(*Logger).newEvent(0x0, 0x1, 0x0)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:387 +0x34
github.com/rs/zerolog.(*Logger).Info(...)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:277
github.com/kiwiirc/plugin-fileuploader/server.(*RunContext).runLoop(0xc000158900)
/home/baytuch/plugin-fileuploader/server/server.go:99 +0x358
created by github.com/kiwiirc/plugin-fileuploader/server.(*RunContext).Run
/home/baytuch/plugin-fileuploader/server/server.go:43 +0x97
When I try write log to file in the absolute path:
[[Loggers]]
#Level = "info"
Level = "debug"
Format = "pretty"
Output = "file:/var/log/webgate/fileuploader.log"
#Output = "stderr:"