ilogtail
ilogtail copied to clipboard
[FEATURE]: Migrate log library in Go
Concisely describe the proposed feature Currently, ilogtail plugin uses seelog as its logging library. However, it is not maintained any more and it produces wrong line number which makes tracing errors more difficult.
A clear and concise description of what you want. For example, A fast correct logging library.
Describe the solution you'd like (if any) zap and zerolog are performant modern logging library in Go. with lumberjack to rotate logs.
example impl: https://gist.github.com/panta/2530672ca641d953ae452ecb5ef79d7d
Another problem is: do we need logging interface to avoid vender lock in? logr could be an option.
refer to this link for more information. https://www.crowdstrike.com/blog/logging-with-go/
Maybe slog is an optional after update go to 1.21