Created
October 20, 2015 16:32
-
-
Save evanphx/941b36c9bd9f9fd94cf9 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
require 'json' | |
class SRailsLogger < SLogger | |
def emit(opts) | |
Rails.logger.info JSON.generate(opts) | |
end | |
end | |
SLog = SRailsLogger.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment