elfo-rs / elfo

An asynchronous distributed actor framework in Rust with robust observability
217 stars 12 forks source link

feat(logger): implement logs truncation when line size limit exceedes #128

Closed nerodono closed 2 months ago

nerodono commented 3 months ago

Adds max_line_size option to logger config. Truncation is performed in the following order:

  1. payload
  2. meta (timestamp, level, trace id)
  3. fields (location, module)