Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdub/console_logger
https://github.com/mdub/console_logger
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdub/console_logger
- Owner: mdub
- License: mit
- Created: 2015-02-23T05:34:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-23T05:36:18.000Z (almost 10 years ago)
- Last Synced: 2024-04-25T22:22:17.520Z (8 months ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ConsoleLogger
Logging is great. But sometimes, you just want to write to STDOUT/STDERR.
ConsoleLogger provides a quick way to get a Logger optimised for console output.
## Usage
Use it like this:
require 'console_logger'
logger = ConsoleLogger.new($stderr)
logger.info("something is about to happen")
# => INFO: something is about to happen
logger.warn("something went wrong!")
# => WARN: something went wrong!## Contributing
* It's on GitHub; you know the drill.