1

I must create an REST API that provides log entries (JSON format): these entries must be stored in rotating log files (it is to limit the maximum size of the log). Currently, I use zerolog to create my log entries and I use lumberjack v2 to write rotating log files. But how to do to read log files in a goroutine during an another write logs ?

ipStack
  • 381
  • 1
  • 12

0 Answers0