Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created October 20, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanphx/941b36c9bd9f9fd94cf9 to your computer and use it in GitHub Desktop.
Save evanphx/941b36c9bd9f9fd94cf9 to your computer and use it in GitHub Desktop.
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