Configure my parser with external properties

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

Moderator: admin

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

Configure my parser with external properties

Postby john » Thu Mar 29, 2007 11:29 am

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

Re: Configure my parser with external properties

Postby admin » Fri Mar 30, 2007 8:56 pm

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().


Return to “Writing a Parser”

Who is online

Users browsing this forum: No registered users and 1 guest