severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
260 stars 91 forks source link

allow to customize full_message #57

Closed sentient closed 7 years ago

sentient commented 8 years ago

I like the stack trace in full_message when it is an exception.

but the fallback to record.message() that is also used for the short_message is just unnecessary data collection into graylog.

What would be nice if we could write a filter that can provide a custom implementation on a record. e.g. record.get_full_message()

severb commented 7 years ago

Sorry for a late reply. I don't know if this is still relevant, have you managed to get this working?