Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off requestLog

We just upgraded our dropwizard version from 0.6.2 or 0.7 and found out that a lot of configurations have changed in .yml file. Although we were able to figure out most of them, we cannot figure out how to turn off the "requestLog". In 0.6.2 we did the following:

requestLog:
        # Settings for logging to stdout.
        console:
            # If true, log requests to stdout.
            enabled: false
            # The time zone in which dates should be displayed.

But looking at the new documentation:

we do not see any reference to how we can disable the request logs. Any ideas as to how we can achieve our goal of turning off the request log in dropwizard 0.7 ?

like image 962
shahshi15 Avatar asked May 06 '14 22:05

shahshi15


1 Answers

The requestLog property is now configured under the server property. And it looks like the enabled property has been removed. You can get around this by setting an empty appenders list. Try something like this:

server:
  applicationConnectors:
  - type: http 
    port: 9000
  adminConnectors:
  - type: http
    port: 9001
  requestLog:
    appenders: []
like image 62
condit Avatar answered Sep 21 '22 18:09

condit