Histórico da Página
...
Criar o arquivo logback.xml em um diretório. O arquivo deve ter a seguinte estrutura:
<configuration debug="true" scan="true" scanPeriod="30 seconds"> <appender name="CONSOLE_LOG" class="ch.qos.logback.core.ConsoleAppender"> <appender name="FILE-ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender"> <!-- log file directory --> <!-- zipped log file directory --> <encoder> <logger name="ch.qos.logback" level="debug" additivity="false"/> <root level="debug"> </configuration> |
---|
Arquivo SH
Adicionar nos parâmetros de execução VM (JAVA_OPTS) a variável:
-Dlogback.configurationFile=<LOCALIZAÇÃO DO ARQUIVO logback.xml>
Níveis de log
Os níveis de log podem ser alterados a partir do application.properties, através das propriedades logging.level
server.tomcat.threads.min-spare=10 logging.level.root=INFO #spring.profiles.active=prod #server.port=40008 |
---|