Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stve/em-logger
experimental logger class for EventMachine
https://github.com/stve/em-logger
Last synced: 23 days ago
JSON representation
experimental logger class for EventMachine
- Host: GitHub
- URL: https://github.com/stve/em-logger
- Owner: stve
- License: mit
- Created: 2011-12-16T04:04:35.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-11T14:15:36.000Z (over 11 years ago)
- Last Synced: 2024-09-17T11:12:34.986Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 107 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this 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](https://github.com/spagalloco/em-logger/blob/master/LICENSE.md) for detail