Change log level with env var and update readme

This commit is contained in:
Sebastien 2018-09-16 13:19:18 +03:00
parent a3ee115d0d
commit 859b061d06
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ Docker:<br/>
> - DB_URL=jdbc:mysql://database/botdiscord > - DB_URL=jdbc:mysql://database/botdiscord
> - DB_USER=root > - DB_USER=root
> - DB_PWD=ogahxu1eigohN2Eok0xoawae #CHANGE ME! > - DB_PWD=ogahxu1eigohN2Eok0xoawae #CHANGE ME!
> - OAUTH_URL= #discord generated, change "response_type=code" to "response_type=token"
> - LOG_LEVEL=info
> labels: > labels:
> - "traefik.frontend.rule=Host:exemple.com" #CHANGE ME! > - "traefik.frontend.rule=Host:exemple.com" #CHANGE ME!
> - "traefik.docker.network=proxy" > - "traefik.docker.network=proxy"

View File

@ -25,7 +25,7 @@
</File> </File>
</Appenders> </Appenders>
<Loggers> <Loggers>
<Logger name="net.Broken" level="info" additivity="false"> <Logger name="net.Broken" level="${env:LOG_LEVEL}" additivity="false">
<AppenderRef ref="Console"/> <AppenderRef ref="Console"/>
<AppenderRef ref="current"/> <AppenderRef ref="current"/>
<AppenderRef ref="RollingFile"/> <AppenderRef ref="RollingFile"/>