certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] jcerti: controlling logging


From: Andrej Pancik
Subject: Re: [certi-dev] jcerti: controlling logging
Date: Mon, 5 Apr 2010 22:41:00 +0200

Hello,

 configuration with property file is definitely a plan. I was
considering it not only to set up the logging level but also to set up
the log file, RTIG and RTIA paths and so on.

regards

Andrej Pancik

On Mon, Apr 5, 2010 at 8:28 PM, Eric Noulard <address@hidden> wrote:
> Hi Andrej,
>
> [changing the mail subject]
>
> 2010/4/5 Andrej Pancik <address@hidden>:
>> That is my fault. I forgot to turn it off after the upgrade. Right now
>> there is no fancy way to reduce the amount of messages once the LibRTI
>> is build. But changing the line 83
>> in src\certi\rti\impl\CertiRtiAmbassador.java
>>
>> rootLogger.setLevel(Level.ALL);
>>
>> to
>>
>> rootLogger.setLevel(Level.OFF);
>>
>> should do the trick. If Java had macros that line would be difference
>> between debug and release build...
>
> May be this could be controlled by a property file:
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
>
> Default property file may be embedded into the "Release jar" whereas
> debug run would read alternate property file from an external location.
>
> Reading a property file from the jar should be easy:
> http://snippets.dzone.com/posts/show/813
>
> First trying an external (not in the jar) property file location is doable 
> too.
>
> That's just easy to go solution, may be there is better/nicer ones,
> not a big deal though.
>
> --
> Erk
> Membre de l'April - « promouvoir et défendre le logiciel libre » -
> http://www.april.org
>
>
> --
> CERTI-Devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/certi-devel
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]