Logging some request headers with DropWizard
问题 We're trying to add a custom http header to dropwizard access logs. We tried dropwizard 0.9.1 and 0.9.2, but can't find a way to do this. We noticed the following: server.requestlogs.appenders[file].logFormat is being ignored. It always logs using the common logging format. logging.appenders[file].logFormat is honoured, but web specific stuff results in %PARSER_ERROR[..] for things like %header{HEADER-NAME}, %A, etc. Is there a way to log such information? 回答1: It is possible to use a custom