Updated syslog #2292

This commit is contained in:
Priit Tark 2015-08-14 14:27:30 +03:00
parent af6f3bc87e
commit 746fabadfd
6 changed files with 9 additions and 9 deletions

View file

@ -48,11 +48,8 @@ Rails.application.configure do
# Prepend all log lines with the following tags.
config.log_tags = [:subdomain, :uuid, :remote_ip]
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# config.log_tags = [:subdomain, :uuid, :remote_ip]
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
# Use a different cache store in production.
# config.cache_store = :mem_cache_store

View file

@ -35,6 +35,9 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# config.log_tags = [:subdomain, :uuid, :remote_ip]
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
config.action_mailer.default_url_options = { host: 'localhost:8081' }
# for finding database optimization

View file

@ -49,7 +49,7 @@ Rails.application.configure do
config.log_tags = [:subdomain, :uuid, :remote_ip]
# Use a different logger for distributed setups.
config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
# Use a different cache store in production.
# config.cache_store = :mem_cache_store

View file

@ -49,7 +49,7 @@ Rails.application.configure do
config.log_tags = [:subdomain, :uuid, :remote_ip]
# Use a different logger for distributed setups.
config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new(ENV['app_name']))
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
# Use a different cache store in production.
# config.cache_store = :mem_cache_store