Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdub/console_logger


https://github.com/mdub/console_logger

Last synced: about 2 months ago
JSON representation

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.