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 » Mon Sep 09, 2013 4:55 pm

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: 418
Joined: Sun Dec 17, 2006 10:30 pm

Re: Timestamp format not recognized

Post by admin » Mon Sep 09, 2013 5:20 pm

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 » Mon Sep 09, 2013 10:56 pm

Does my example work with Simple Parser too?

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

Re: Timestamp format not recognized

Post by admin » Tue Sep 10, 2013 3:58 pm

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

Image

Post Reply