dwbutler / logstash-logger

Ruby logger that writes logstash events
MIT License
456 stars 119 forks source link

Support for `shift_size` and `shift_age` #164

Open arianf opened 4 years ago

arianf commented 4 years ago

Ruby Logger supports shift_age and shift_size

https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html#method-c-new

Anyway to use those properties within a configuration?

    {
      type: :file,
      path: 'log/production.log',
      shift_size: 1,
      shift_age: 1000,
      sync: true,
      formatter: ActiveSupport::Logger::SimpleFormatter
    },