Moocar / logback-gelf

Logback plugin to send GELF messages to graylog2 server
Apache License 2.0
147 stars 59 forks source link

Ability to override sending host #27

Closed danieljamesscott closed 10 years ago

danieljamesscott commented 10 years ago

It would be useful to have another configuration option to override the name of the sending host. Currently, it uses getLocalHostName(), I would like to override this value using a configuration option:

https://github.com/Moocar/logback-gelf/blob/master/src/main/java/me/moocar/logbackgelf/GelfAppender.java#L96

Is this possible?

Moocar commented 10 years ago

Sounds like a great idea. Send a PR over and i'll merge it in.

danieljamesscott commented 10 years ago

OK, I don't have any code yet, but I'll have a go. :)