I need to print logs in pretty Json format, with all details.
Currently I have my small service on spring boot and application.yml configuration file. I have below configuration for logging;
logging:
level:
root: INFO
org:
springframework:
security: INFO
web: INFO
hibernate: INFO
apache:
commons:
dbcp2: INFO
file: ../logs/myLog.log
pattern:
console: '%d{yyyy-MMM-dd HH:mm:s s.SSS} %-5level [%thread] %logger{15} - %msg%n'
Could you please advise me is there any configuration to change appender, so I could get logs in Json format.