1

Bug report ?? image

logging:
  level:
    com.zaxxer.hikari: DEBUG
    org.springframework: INFO
    org.kafka.test: TRACE
  file: "logs/%d{yyyy-MM-dd HH_mm_ss} pid-${PID}.log"
  pattern.console: "%d{HH:mm:ss} - %msg%n"

Hello. please help with the file name. The time format does not work well.

I expected to see 1 file named "2020-02-07 10_38_40 pid-17996.log"

I got 2 files and the file names are bad.

Please do not advise using logback-spring.xml I configure logs through .yml

Leinariys
  • 11
  • 3
  • Looks like [this](https://stackoverflow.com/questions/35552647/how-to-include-date-in-log-files-name-with-spring-boot-slf4j?answertab=votes#tab-top) will answer your question. – raj240 Feb 07 '20 at 08:07
  • Hi Leinarys, welcome to Stackoverflow. Some tips: - it is best not to attach screenshots but copy-paste the code - explain clearly the problem you experience then provide an example of code and configuration – Beppe C Feb 07 '20 at 08:37
  • @raj240 no this is not the answer – Leinariys Feb 07 '20 at 08:47

0 Answers0