#27 Log4j PAttern [%d{ISO8601}][%-5p][%c{1}]: %m%n is not recogn

insight-ui-1.5.1
open-later
insight-ui (17)
9
2012-03-16
2012-03-16
TSS
No

Log4j pattern of my application [%d{ISO8601}][%-5p][%c{1}]: %m%n is not recognized by the Insight Tool.Can you please look into the issue ?Apart from that the tool works great!

Discussion

  • TSS

    TSS - 2012-03-16

    Insight Error document

     
  • TSS

    TSS - 2012-03-16
    • priority: 5 --> 9
     
  • Bindul Bhowmik

    Bindul Bhowmik - 2012-03-16

    Insight uses java.text.SimpleDateFormat to parse dates. Since SimpleDateFormat does not accept ISO8601 as a pattern string, you will have to change the format a bit when entering it in Insight preferences. For example, you could use the format:
    [%d{yyyy-MM-dd'T'HH:mm:ssz}][%-5p][%c{1}]: %m%n

    You do not have to change your log4j configuration, just the Insight preferences when arsing the log.

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2012-03-16
    • assigned_to: nobody --> bindul
    • status: open --> open-later