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
These are lists of known appenders and formatters for Hatchet. If you have created an appender or formatter then create an issue on GitHub including the name of your extension, the line required for someone’s Gemfile, and a brief description of what it does. It will then be added to the list.
Hatchet comes with the LoggerAppender
appender that delegates to a standard Logger
.
https://github.com/adambird/hatchet-airbrake
An appender that sends errors to Airbrake.
https://github.com/gshutler/hatchet-hipchat
An appender that posts messages to HipChat rooms.
Hatchet comes three formatters, PlainFormatter
, StandardFormatter
and
SimpleFormatter
.
MESSAGE
The PlainFormatter
outputs messages as they are provided without any
additional context or sanitization. This is most useful with Rails’ logs as they
are intended to be human readable, particularly when in development.
%Y-%m-%d %H:%M:%S.%L [THREAD] LEVEL CONTEXT - MESSAGE
The StandardFormatter
outputs messages in the TTCC of log4j. This is a format
that is easy to grep and works well with log monitoring tools like Chainsaw.
LEVEL - CONTEXT - MESSAGE
The SimpleFormatter
outputs messages in a simpler format for when the time an
thread of the message is provided by some other means. For example, Heroku adds
the timestamp and thread to log messages of its own accord so it does not need
to be duplicated.