set timezone of logging messages

Is there a way to configure logback in spring boot to output the local time of the log messages in a different timezone than the system timezone?

I would like to set it up over configuration (i.e. application.yml / overwrite with environment variables on specific systems)


Just add to your application.yml following lines:

logging:
  pattern:
    dateformat: yyyy-MM-dd HH:mm:ss.SSS,Europe/Moscow

The corresponding environment variable is LOGGING_PATTERN_DATEFORMAT