Project

em-logger

0.0
No commit activity in last 3 years
No release in over 3 years
An experimental logger class for EventMachine applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0

Runtime

>= 0.12.10
 Project Readme

EventMachine Logger

An experimental logger class for EventMachine applications.

Usage

EM::Logger is a simple delegator around the ruby logger class. It responds to all the log levels you are familiar with from existing loggers (info, debug, warn, etc.). The only difference is that it's instantiated by passing an existing logger in when initializing

require 'eventmachine'
require 'logger'
require 'em-logger'

log = Logger.new(STDOUT)
logger = EM::Logger.new(log)

EM.run do
  logger.info('ohai')

  EM.stop
end

Contributing

Pull requests welcome: fork, make a topic branch, commit (squash when possible) with tests and I'll happily consider.

Copyright

Copyright (c) 2012 Steve Agalloco. See LICENSE for detail