How can I change the log level in metabase

We are Running Metabase on Docker, How can we change the log level.I see that metabase uses log4j but don’t find any instructions of setting it up if we run metabase on docker.

Hi @j89
Use the environment variable JAVA_OPTS - example:

... -e JAVA_OPTS="-Dlog4j.configuration=https://log4j.us/templates/metabase?trace=metabase.sync" ...

Hi @flamber,

Can you please help me here, I tried below command and getting following warnings and getting stuck.

docker run -v $PWD/log4j.properties:/log4j.properties -e JAVA_OPTS=-Dlog4j.configuration=file:/log4j.properties metabase/metabase

log4j:WARN No appenders could be found for logger (metabase.util).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info
WARNING: any? already refers to: #'clojure.core/any? in namespace: monger.collection, being replaced by: #'monger.collection/any?.

Note: properties file got created inside docker container but its empty…Any help is appreciated. Thanks

Its working…