6.3. Changing the Timezone of Log Messages

Documentation

VoltDB Home » Documentation » Administrator's Guide

6.3. Changing the Timezone of Log Messages

By default all VoltDB logging is reported in GMT (Greenwich Mean Time). If you want the logging to be reported using a different timezone, you can specify the time format, including the timezone, as part of the layout pattern. For example, the following fragment changes the timezone of messages written to the file appender to GMT minus four hours:

appender.file.type = RollingFile
appender.file.name = file
appender.file.fileName = ${log.file}
appender.file.filePattern = ${log.file}.%d{yyyy-MM-dd}
appender.file.layout.type = PatternLayout
appender.file.layout.pattern = %d{ISO8601}{GMT-4} %-5p [%t] %c: %m%n
 [ . . . ]

You can use any valid ISO-8601 timezone specification, including named timezones, such as EST.