#logging
logging:
  file:
    path: C:/zLOGS
    name: ${logging.file.path}/test.log
    max-history: 7
    max-size: 2KB
  pattern:
    console: "%d{MM-dd HH:mm:ss.SSS} %clr(${LOG_LEVEL_PATTERN:-%5p}) [%t] %clr(%-40.40logger{39}){cyan} [%L] | %msg%n"

    file: "%d{MM-dd HH:mm:ss.SSS} %clr(${LOG_LEVEL_PATTERN:-%5p}) [%t] %clr(%-40.40logger{39}){cyan} [%L] | %msg%n"
    #console: "%-5level %d{yyyy-MM-dd HH:mm:ss} %logger{999}[line : %line] - %msg%n"

 

https://stackoverflow.com/questions/29764258/why-doesnt-spring-boot-listen-to-the-logging-path-variable

 

why doesn't spring-boot listen to the logging.path variable?

Using spring-boot 1.2.3.RELEASE. The only way I can get spring-boot to log to a specific directory is by setting the "log.file" property like so: logging.file=/var/log/app.log But as far as I ca...

stackoverflow.com

 

'log' 카테고리의 다른 글

중복 로그  (0) 2021.06.08
logback MDC 이용하여 동적(?)로그 남기기  (0) 2020.08.15
log4jdbc for tibero  (0) 2020.07.12
log4jdbc spring boot  (0) 2020.04.20
printStackTrace To String  (0) 2019.07.03
Posted by 張's blog
,