Skip to content
A Lita handler that logs arbitrary messages to Lita's Logger object
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
locales
spec
templates
.gitignore
.rubocop.yml
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-log.gemspec

README.md

lita-log

Build Status Coverage Status

lita-log is a handler for Lita that logs arbitrary messages to the bot's Logger object.

Installation

Add lita-log to your Lita instance's Gemfile:

gem "lita-log"

Usage

In order to record a message in Lita's log, a user must be a member of the :log_admins authorization group. Valid log levels are: UNKNOWN, FATAL, ERROR, WARN, INFO, DEBUG

<me>   lita: log info Hello world!
<lita> Successfully logged 'Hello world!' with level INFO
<me>   lita: log fatal This is a test. This is a test of the incident alerting system. This is only a test.
<lita> Successfully logged 'This is a test. This is a test of the incident alerting system. This is only a test.' with level FATAL

The resulting log entries will look like this:

[2015-12-15 19:45:36 UTC] INFO: Hello world!
[2015-12-15 19:45:44 UTC] FATAL: This is a test. This is a test of the incident alerting system. This is only a test.

License

MIT

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.