Skip to content
/ log4go Public

simple and powerful log for go, now support output to console, file and kafka

License

Notifications You must be signed in to change notification settings

xwi88/log4go

Repository files navigation

log4go

The simple but powerful log for go.

TODO

  • base logger
  • console writer
  • file writer
  • kafka writer
  • net writer

ENV

The go version shall >= 1.16

Writers

  • support output the caller`s file and lines
  • support level filter
  • simply use, pls ref xxx_test.go

FileWriter

Filename regex support: %Y %M %D %H %m, prefix must be %

KafkaWriter

Can writer to kafka easily, with es_index you can also transfer data to ES easily. If you want more fields can set them by the field msg.extra_fields.

Thanks

JetBrains Logo (Main) logo

About

simple and powerful log for go, now support output to console, file and kafka

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages