Skip to content

Instantly share code, notes, and snippets.

@sakuemon
Created October 18, 2012 13:37
Show Gist options
  • Save sakuemon/3911856 to your computer and use it in GitHub Desktop.
Save sakuemon/3911856 to your computer and use it in GitHub Desktop.
rails3 logger
# coding: utf-8
module Loggers
if Settings.logger.trace.nil? or Settings.logger.trace.output.nil?
TRACE_LOGGER = ActiveSupport::TaggedLogging.new(Logger.new(STDERR))
else
TRACE_LOGGER = ActiveSupport::TaggedLogging.new(Logger.new(Settings.logger.trace.output))
end
end
@sakuemon
Copy link
Author

required rails_config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment