dateandtimecalculationscripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dateandtimecalculationscripts [2021/07/25 16:06]
wikiadmin [Get the Current Local Time]
dateandtimecalculationscripts [2021/07/25 16:14] (current)
wikiadmin [Get the Current Local Time]
Line 24: Line 24:
 ==== Get the Current Local Time ==== ==== Get the Current Local Time ====
  
-For log4j logging, use a date formatter in the appender, for example: +For log4j logging, use a date formatter %d in the appender layout, for example:
  
 +<code xml>
 +     <layout class="org.apache.log4j.PatternLayout">
 +   <param name="ConversionPattern"  value="%d{ISO8601} %m %n" />
 +     </layout>
 +</code>
  
  
  • dateandtimecalculationscripts.1627247208.txt.gz
  • Last modified: 2021/07/25 16:06
  • by wikiadmin