Custom Paser

Here developers can talk about how to write a Parser for LogMX

Moderator: admin

Post Reply
fxgo2000
Posts: 2
Joined: Fri Sep 30, 2016 3:13 am

Custom Paser

Post by fxgo2000 » Fri Sep 30, 2016 3:41 am

I am new to LogMX.

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0929 08:16:27.394696 3308 main.cpp:449] Start of program

I have tried to write a Simple parser, Log4, and Regex and can't get it to work

I am open to any help. Thanks -frank

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

Re: Custom Paser

Post by admin » Fri Sep 30, 2016 4:10 am

Hello Frank,

You can create a Log4j Parser using this Pattern:

Code: Select all

%mx{IWEF}%d{MMdd HH:mm:ss.SSS} %t %F:%L] %m
Like this:
Image1.png
Image1.png (48.3 KiB) Viewed 1786 times
Xavier

fxgo2000
Posts: 2
Joined: Fri Sep 30, 2016 3:13 am

Re: Custom Paser

Post by fxgo2000 » Fri Sep 30, 2016 10:35 am

Xavier Thank you!

You just got me to purchase LogMX!

You are the man! -frank

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

Re: Custom Paser

Post by admin » Fri Sep 30, 2016 11:00 am

You're welcome :)

Post Reply