Closed nklapste closed 5 years ago
Nathan, can you please rebase on top of the latest master? I already merged the cleanup part.
Nathan, can you please rebase on top of the latest master? I already merged the cleanup part.
Sure I can start some updates on this branch. It should be done by the end of this week.
I ended up changing the way to set the formatter to use a setFormatter
method in the base class BaseGELFHandler
. This seems cleaner and resembles how other python logging handlers work.
Please review and see if this specification is preferable.
It may be beneficial in the future to make BaseGELFHandler
a subclass of logging.Handler
as to fully encompass all python logging handler behavior.
Also note this does not raise the version number of graypy
. I would recommend v0.4.0
.
Nathan, can you please rebase on top of the latest master? I already merged the cleanup part.
Sure I can start some updates on this branch. It should be done by the end of this week.
Should be rebased and revised! Feel free to review and merge when comfortable!
@severb any ETA on review and merging?
Sorry for the lag on my side. Thanks for the patch!
Adds the ability to specify a python
logging.Formatter
within the initialization of aBaseGELFHandler
or its children. This allows thelogging.Formatter
to be applied to the GELF log'sshort_message
andlong_message
.Small refactoring and modernization of the python codebase was also done.