paul PRO said about 1 month ago on Kamal Logs :
Thanks  David Kimura  for your quick responses. I don't need any identifiable information of the users . How can I set docker to not keep any of these info or set a time to remove logs? I am trying to crate a cookies policy for my app and I want to comply the gdpr which tells that you can have logs for troubleshooting issues but set a time limit for you logs. 

Currently I have this:   

  # production.rb file
  config.logger = ActiveSupport::Logger.new("log/production.log", 5, 50.megabytes)


  # application.rb file
    config.lograge.formatter = Lograge::Formatters::Json.new
    config.lograge.custom_options = lambda do |event|
      {
        controller: event.payload[:controller],
        action: event.payload[:action],
        params: event.payload[:params].except("controller", "action"),
        method: event.payload[:method],
        status: event.payload[:status],
        format: event.payload[:format],
        path: event.payload[:path],
      }
    end