colbygk/log4r — pull request #36 by marcelog (2014-09-19 22:25:18+00:00)
Title: adding outputter for logstash udp input

Hey guys,

This pull adds a new outputter to use the [logstash udp input](http://logstash.net/docs/1.4.2/inputs/udp). The code is based on the *UDPOutputter*. Here's a sample yml config for it:
```yaml
- type: LogstashUDPOutputter
name: logstashUDP
level: WARN
date_pattern: '%Y%m%d'
trunc: 'false'
host: '127.0.0.1'
port: 10001
log_type: 'this_will_show_up_in_logstash'
formatter:
date_pattern: '%y%m%d %H:%M:%S'
pattern: '%m'
type: PatternFormatter
```

And a sample config for logstash:
```
udp {
codec => json
port => 10001
queue_size => 2
workers => 2
type => myAppType
}
```

Does this sound like a desirable feature for the project? Will appreciate any comments on the implementation.

Thanks in advance! Cheers,