severb/graypy — pull request #29 by micahlmartin (2013-05-16 22:55:59+00:00)
Title: Refactored, added support for custom-fields dictionary

- Refactored hostname lookup so it's only called once on startup and not everytime a message is logged
- Added support to log a custom dictionary as additional fields:

```python
logger.debug({
"Type": "Request",
"User": "Joe",
"Message": "GET /my/url"
})
```
Sends this GELF message:
```json
{
...
"full_message": "GET /my/url",
"_Type": "Request",
"_User": "Joe"
}
```