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 »

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

Re: Custom Paser

Post by admin »

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 14066 times
Xavier
fxgo2000
Posts: 2
Joined: Fri Sep 30, 2016 3:13 am

Re: Custom Paser

Post by fxgo2000 »

Xavier Thank you!

You just got me to purchase LogMX!

You are the man! -frank
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Custom Paser

Post by admin »

You're welcome :)
Post Reply