Histórico da Página
...
Criar o arquivo logback.xml em um diretório. O arquivo deve ter a seguinte estrutura:
logback.xml |
---|
<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> |
...
Os níveis de log podem ser alterados a partir do application.properties, através das propriedades logging.level
Application.properties |
---|
server.tomcat.threads.min-spare=10 logging.level.root=INFO #spring.profiles.active=prod #server.port=40008 |