Project

lita-log

0.0
No commit activity in last 3 years
No release in over 3 years
A Lita handler that logs arbitrary messages to Lita's Logger object
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.6
 Project Readme

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