Created
December 2, 2010 17:48
-
-
Save paul/725749 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!app_name | |
*.info -/var/log/app_name/rails.log | |
& @<%= log_server_ip %> | |
& ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= path_to_log_file %> { | |
daily | |
missingok | |
rotate <%= num_files_to_keep %> | |
compress | |
delaycompress | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# 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