severb/graypy — pull request #25 by piotrbulinski (2013-04-11 10:50:16+00:00)
Title: Make facility configurable

Hi,

after using graypy for some time we get a bit annoyed that every system using graylog use application name for facility but our django processes use logger name. It's hard to read and what's more important, hard to filter logs for specific django application.

What works for us is setting facility to application name and then send record.name as additional "logger" field.

Also it's compliant with unix/syslog way of doing things (The facility argument is used to specify what type of program is logging the message), so ops/support would also appreciate this change :)

Proposed change is backwards compatible, so if possible, please pull it to master, so we can use official package back again.

Piotr