1 Reply Latest reply on Sep 20, 2012 1:35 AM by syed mehdi

    customized formatting of time in logs, including time zone and/or modification of time before output

    syed mehdi Newbie


      In our application we have customized the logging format, but we are facing couple of new issues. Here is the related snippet of "standalone.xml":


              <console-handler name="CONSOLE">
                  <level name="INFO"/>
                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
              <custom-handler name="splunk" class="com.xyz.logger.SocketLoggerWrapper" module="com.xyz.splunk">
                  <level name="INFO"/>
                  <encoding value="UTF-8"/>
                      <property name="host" value="ip"/>
                      <property name="port" value="port"/>



      Can i provide the timezone in the customized pattern formatter? If yes, where should i provide it in format, so that splunk can read it.

      and/or if i want to change the time (to be output to log file), so that it is different from current time and same as another server situated in a different time zone, how can i do that?


      Thanks for any help.