Hello,
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"/> | |
| <formatter> | |
| <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> | |
| </formatter> | |
| </console-handler> | |
| <custom-handler name="splunk" class="com.xyz.logger.SocketLoggerWrapper" module="com.xyz.splunk"> | |
| <level name="INFO"/> | |
| <encoding value="UTF-8"/> | |
| <properties> | |
| <property name="host" value="ip"/> | |
| <property name="port" value="port"/> | |
| </properties> | |
| </custom-handler> |
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.
This has been resolved, and time zone can be provided using '-z' in pattern-formatter.