Skip to content

Instantly share code, notes, and snippets.

@paul
Created December 2, 2010 17:48
Show Gist options
  • Save paul/725749 to your computer and use it in GitHub Desktop.
Save paul/725749 to your computer and use it in GitHub Desktop.
!app_name
*.info -/var/log/app_name/rails.log
& @<%= log_server_ip %>
& ~
<%= path_to_log_file %> {
daily
missingok
rotate <%= num_files_to_keep %>
compress
delaycompress
}
# ...
# Use a different logger for distributed setups
require 'syslog_logger'
config.logger = SyslogLogger.new('app_name')
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment