You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gives me this:
2012-12-02T13:08:05-08:00 app {"sys_module":"app","sys_name":"fluent","sys_host":"hostname","connect":""}
(that is all on one line)
Ideally, I would like the output to be the same as when I use the event interface. Also, when I specify multiple items in the log, like so:
As for the order of the fields, well this is the nature of python dict, the order is not stable.
If you want it to be displayed in order, you will most likely want to implement a logging formatter that will be used for console or file output.
Activity
EvaSDK commentedon Dec 13, 2013
The sys_* keys are added specifically in this class and are not (currently ?) overridable.
See https://github.com/fluent/fluent-logger-python/blob/master/fluent/handler.py#L18
As for the order of the fields, well this is the nature of python dict, the order is not stable.
If you want it to be displayed in order, you will most likely want to implement a logging formatter that will be used for console or file output.
See http://docs.python.org/2/library/logging.html#logging.Formatter for that.
Add support for customizing structured message
Add support for customizing structured message
Add support for customizing structured message
Add support for customizing structured message
Add support for customizing structured message
Add support for customizing structured message
EvaSDK commentedon Jun 17, 2015
I think your concerns should be cleared with logger format customization available in v0.4.0.