ilogtail icon indicating copy to clipboard operation
ilogtail copied to clipboard

[FEATURE]: Migrate log library in Go

Open yyuuttaaoo opened this issue 1 year ago • 1 comments

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/

yyuuttaaoo avatar Jun 16 '23 13:06 yyuuttaaoo

Maybe slog is an optional after update go to 1.21

wusphinx avatar Oct 09 '23 01:10 wusphinx