Skip to content

Instantly share code, notes, and snippets.

@addisonj
Created February 27, 2015 20: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 addisonj/4f601a5be75979dfa58b to your computer and use it in GitHub Desktop.
Save addisonj/4f601a5be75979dfa58b to your computer and use it in GitHub Desktop.
diff --git a/lib/bullet.rb b/lib/bullet.rb
index f6c522f..4569927 100644
--- a/lib/bullet.rb
+++ b/lib/bullet.rb
@@ -95,6 +95,10 @@ module Bullet
end
end
+ def custom_logger=(logger)
+ UniformNotifier.add_notifier(logger)
+ end
+
def debug(title, message)
puts "[Bullet][#{title}] #{message}" if ENV['BULLET_DEBUG'] == 'true'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment