> I'm using msgpack logging to logstash, as here > http://uwsgi-docs.readthedocs.org/en/latest/LogEncoders.html#the-msgpack-encoder > > Is it possible to add fields for the response time and http status to > the log message structure? > > My current encoder is set as: > log-encoder = msgpack:logstash > map:4|str:message|msg|str:hostname|str:%h|str > :version|str:%V|str:appname|str:%n > >
encoders have no access to the request context, you should set additional data via log-format. I realize it is a pretty huge limit for msgpack, but i still was not able to find a good solution to make encoders smarter -- Roberto De Ioris http://unbit.com _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
