fcoexposito
09-14-2007, 12:32 AM
Hi,
I am trying to create a log file in MM 2007 but it doesn´t work (and it works in MM 2006).
The java code is
public class OyenteElementos implements StateChangeEventListener
{
static Log log = LogFactory.getLog(OyenteElementos.class);
public void stateChanged(WMStateChangeEvent e)
throws WMException,WMVetoWMObjectChangeException
{
log.debug("Entra en cambio de estado");
AdsDialog.showMsg("Mensaje de prueba", "Mensaje de prueba", 1);
log.error("Sale de cambio de estado");
}
}
and I add this class in the xml configuration file in the correct position:
<StateChangeListener>ads.orquestador.clientemm.oyente.OyenteElementos</StateChangeListener>
If I change a state in MM 2006, the logs are created, but if I try it in MM 2007 they are not created, although the code is well executed, because I see the dialog message.
Has anybody an idea?
Thanks a lot.
I am trying to create a log file in MM 2007 but it doesn´t work (and it works in MM 2006).
The java code is
public class OyenteElementos implements StateChangeEventListener
{
static Log log = LogFactory.getLog(OyenteElementos.class);
public void stateChanged(WMStateChangeEvent e)
throws WMException,WMVetoWMObjectChangeException
{
log.debug("Entra en cambio de estado");
AdsDialog.showMsg("Mensaje de prueba", "Mensaje de prueba", 1);
log.error("Sale de cambio de estado");
}
}
and I add this class in the xml configuration file in the correct position:
<StateChangeListener>ads.orquestador.clientemm.oyente.OyenteElementos</StateChangeListener>
If I change a state in MM 2006, the logs are created, but if I try it in MM 2007 they are not created, although the code is well executed, because I see the dialog message.
Has anybody an idea?
Thanks a lot.