Configure my parser with external properties

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

Moderator: admin

Post Reply
john
Posts: 4
Joined: Sun Dec 31, 2006 12:17 am

Configure my parser with external properties

Post by john »

Hello,

I'd like to configure my java parser with an external config file
(i want to be able to change the format date of my parser without recompiling it).

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

Re: Configure my parser with external properties

Post by admin »

john wrote:Hello,

I'd like to configure my java parser with an external config file
(i want to be able to change the format date of my parser without recompiling it).

Thank you.
Hello,

You can simply use the configuration file "parsers.properties" located in the "config" directory of your LogMX distribution.
This 'properties' file is empty in LogMX distribution, and is parsed by LogMX at start-up (see comments in this file for further details). Properties contained in this file are available for Parsers using System.getProperty().
Post Reply