Ruby logging library that provides the ability to add class/module specific filters
View the Project on GitHub gshutler/hatchet
Hosted on GitHub Pages — Theme by orderedlist
Example:
configuration.configure do |config|
config.backtrace_filter '/applications/my_app/releases/current' => '[ROOT]'
end
Will filter a backtrace line like:
/applications/my_app/releases/current/lib/example.rb:42:in `main'
Into:
[ROOT]/lib/example.rb:42:in `main'
SystemStackError
would be raisedBacktraceFormatter
to_s
(thanks to
@gstark)-w
modeRails::Rack::Logger
for
consistent behaviorThe Hatchet::Message
constructor has been altered, going forward it will take
a Hash of arguments instead of fixed arguments. It is currently backwards
compatible but this will likely be dropped for 1.0.0 so it is advised you update
your libraries now.
This should only affect custom formatters which may want to take advantage of the nested diagnostic context which is now available anyway.
No changes from 0.0.20, just time for a minor version release.
#thread_context
attribute to the SimpleFormatter
that is false
by default, but when set to true
will output the context of the thread
within messages in the same style as the StandardFormatter
backtrace=
attributeformatter=
method on appenders optionalnil
rather than it just being
part of the documented contract