Hello,
Now I’m using the imageOverlay effect on all my controls. It works great but…
My logfile becomes unusable.
I get 5000 messages like :
Jan 12, 2011 5:55:03 PM de.lessvoid.nifty.effects.EffectProcessor startEffect
INFO: starting effect [(ImageOverlay)] canceled because customKey [mapSelection_show] does not match key set at the effect
Just for one screen.
I would like to keep some of the INFO nifty messages, but I don't need those ones.
Is it really usefull to keep thoses logs at the INFO Level ?
Just in case, the problem comes from the way I start my effects, here is the code I use :
[java]
public void reloadEffect()
{
//
// PanelElt
//
panelElt.getEffectManager().resetAll();
String panelEffectKey = effectName;
if( panelEffectKey.equals("") )
panelEffectKey = "empty";
panelElt.startEffect( EffectEventId.onCustom, null, panelEffectKey );
//
// ImageElt
//
imageElt.getEffectManager().resetAll();
if( ! effectName.equals("") )
{
String imageEffectKey = effectName + "_";
if( checked )
imageEffectKey += "show";
else
imageEffectKey += "hide";
imageElt.startEffect( EffectEventId.onCustom, null, imageEffectKey );
}
}
[/java]