Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created June 26, 2009 09:20
Show Gist options
  • Save nofxx/136386 to your computer and use it in GitHub Desktop.
Save nofxx/136386 to your computer and use it in GitHub Desktop.
class LogApp
def initialize(m, c, text, req)
HoptoadNotifier.notify(
:error_class => m.to_s.capitalize,
:error_message => text,
:request => req,
:backtrace => c)
end
def self.method_missing(meth, text = "", request={})
new(meth, caller, text, request)
end
end
LogApp.info "Something"
LogApp.warn "Wrong....", { :params => true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment