Timestamp format not recognized

Notes, tips, and other usefull things on how to use LogMX

Moderator: admin

Post Reply
king-ghidorah
Posts: 2
Joined: Mon Sep 09, 2013 4:48 pm

Timestamp format not recognized

Post by king-ghidorah »

Hi,

I've tried with both Simple Parser and Log4j pattern Parser but neither liked my timestamp format yyyy/MM/dd HH:mm:ss.SSS.

Here is an example log line:

2013/09/05 09:58:15.368 [SuperDuper] [main]: INFO: blah blah blah

It doesn't pass the parser test. Any idea?


Thanks
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Timestamp format not recognized

Post by admin »

Hello,

I tried the following Log4jPattern using LogMX v4.0.2, and it works (absolute date OK) :

Code: Select all

%d{yyyy/MM/dd HH:mm:ss.SSS} [%c] [%t]: %p: %m
Maybe you missed a whitespace character in this pattern...

Xavier
king-ghidorah
Posts: 2
Joined: Mon Sep 09, 2013 4:48 pm

Re: Timestamp format not recognized

Post by king-ghidorah »

Does my example work with Simple Parser too?
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Timestamp format not recognized

Post by admin »

Sorry, I forgot to answer you about the Simple Parser: yes, it also works:

Image
Post Reply