gorsuch/datalogger — Issue #2: Support for log levels?
Author: gorsuch
Created: 2012-01-21 16:49:11+00:00
State: open

I'm not wanting to enforce a specific set of log levels (INFO, WARN, CRIT), but it would be nice to allow for one to conveniently tag events if they so choose. Obviously, they have the ability to easily do some thing like this:

```ruby
logger.log status: 'ok' event: 'thing_that_happened'
```

But perhaps we can add a simple shortcut like so:

```ruby
logger.log_ok event: thing_that_happened
```

This would automatically insert the 'status' field. It also becomes a convention so that data sinks can choose to pay attention to these status fields or not. As an example, the current `STDOUT` sink may want to send everything through STDOUT, but send events tagged as `status: error` to `STDERR`.