Hey,
Dropwizard registers a "tasks/log-level" endpoint on the admin port that's 
suppose to allow changing log level at runtime as described in the docs:

curl -X POST -d "logger=com.example.helloworld&level=INFO" 
http://localhost:8081/tasks/log-level


I am trying to change the log level of ALL loggers from INFO to ERROR.

My logger looks like :

logging:
  level: INFO
  appenders:
  - type: console
    logFormat: '%-6level [%d{HH:mm:ss.SSS}] 
[%mdc{X-Request-Id:-}][User:%mdc{user:-none}] [%t] %logger{5} - %X{code} 
%msg %n'
  - type: file
    threshold: INFO
    logFormat: '%-6level [%d{HH:mm:ss.SSS}] 
[%mdc{X-Request-Id:-}][User:%mdc{user:-none}] [%t] %logger{5} - %X{code} 
%msg %n'
    currentLogFilename: log/AuthRS.log
    archivedLogFilenamePattern: log/AuthRS-%d{yyyy-MM-dd}-%i.log.gz
    archivedFileCount: 15
    timeZone: EST
    maxFileSize: 10MB

and I try running :
$ curl -X POST -d "level=ERROR" http:
//localhost:18081/authservice/tasks/log-level

and

$ curl -X POST -d "logger=*&level=ERROR" http:
//localhost:18081/authservice/tasks/log-level

and

$ curl -X POST -d "logger=console&level=ERROR" http:
//localhost:18081/authservice/tasks/log-level

but none of them worked. I still get logs for level INFO 

what am i doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to