We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Moonshine provides logrotate for your application's log directory automatically. Sometimes you may need to keep them longer, for whatever reason.
logrotate
Most common is to change the options. Here's an example you can add to your config/moonshine.yml:
config/moonshine.yml
:rails_logrotate: :options: - daily - missingok - compress - delaycompress - sharedscripts
Or to your application_manifest.rb:
application_manifest.rb
# make sure this is before recipe :default_stack configure :rails_logrotate => {:options => %w(daily missingok compress delaycompress sharedscripts)}
These are actually the defaults. Check out the man page for all the logrotate options.