Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A Lita handler that logs arbitrary messages to Lita's Logger object

Resources

License

Packages

No packages published

Languages