Created
August 25, 2011 06:18
-
-
Save macarthy/1170094 to your computer and use it in GitHub Desktop.
use the rails or merb logger if in use
This file contains hidden or 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
# stolen from delayed_job | |
cattr_accessor :logger | |
self.logger = if defined?(Merb::Logger) | |
Merb.logger | |
elsif defined?(RAILS_DEFAULT_LOGGER) | |
RAILS_DEFAULT_LOGGER | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment