Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 749 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 749 Bytes

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