fields log separated by tab characters

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

Moderator: admin

Post Reply
vbalrog
Posts: 1
Joined: Mon May 04, 2009 9:25 am

fields log separated by tab characters

Post by vbalrog »

hello,
my logs are often patterned like this :
[%d] %p\t(%t)\t%m\t%n
I like to have fields separated by tab characters but when I try to open my logs files with logMX, it doesn't manage to parse them, doesn't recognize the tab character, if I replace it by a space, it works ?

Maybe an enhancement of logMx is needed ?!

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

Post by admin »

Hello,

You're right, LogMX doesn't support the "\t" symbol for Log4j patterns at this time. It will be fixed in the next release that will be available this summer.

To use tab characters, you can replace (in the LogMX Log4j pattern) each "\t" with a real tab character. To write a tab character in LogMX log4j pattern field, simply copy/paste it from another file (e.g. your log file)

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

Post by admin »

Hello,

It's now fixed in v1.3.3 released yesterday :D (Log4j Pattern Parsers now handle "\t" tags in patterns)

Xavier
Post Reply