1

I have a Spring boot application where i use Logback. I want it to only log to the file and not the console. I have following properties

logging.path=/log/myapp/
logging.pattern.console=

i am getting this error when i try to run the app

ERROR in ch.qos.logback.classic.PatternLayout("") - Empty or null pattern.

Can somebody please help with this

Gurbakhshish Singh
  • 1,034
  • 1
  • 10
  • 25
  • Duplicate question check this https://stackoverflow.com/questions/31935151/prevent-spring-boot-from-printing-logs-to-console – Dhiren Oct 25 '18 at 20:44
  • Possible duplicate of [Prevent Spring Boot from printing logs to console](https://stackoverflow.com/questions/31935151/prevent-spring-boot-from-printing-logs-to-console) – Simon Martinelli Oct 26 '18 at 09:45

0 Answers0