The pipe method now accepts a block, to which it passes 2 arguments: * The line of text being logged * The log level of the line Tests for piping are also present.
logger. Great for subprocesses when all you want to do is capture the output to the logger.
While this is here, probably best to avoid creating a whole lot of zeromq outputs.
Can use push or pub sockets.
- Keep threadsafety
#unsubscribe to unsubscribe from a channel.
- make info logs green
methods and #log method.
- make log(message, data) better order the hash so the keys timestamp and message are first.
produce good output now. If the IO is a tty, it'll favor human readability. If the IO is not a tty, the output will be the JSON representation of the event.
updated. - If no metric 'name' is given, it will default to the lowercased metric class name. like "timer" for Cabin::Metrics.timer("foo", nil) - Fix what I believe to be a bug in Histogram that on the first record, min or max could still be zero even though they should both be the same value. Updated tests to ensure this works in the future.
- add a module Cabin::Inspectable to help make building .inspect methods simpler
- fix things that were found broken
- make timer subclass histogram
- bump version