How to control logging level for custom automation plugin
edited Jan 25, 2011 9:07PM in Order and Service Management (Communications Industry) (MOSC) 2 commentsAnswered
Hi
Assume I have the following java class running in OSM 7.0.1 as an automated task :
package no.acme;
import com.mslv.oms.automation.AutomationContext;
import com.mslv.oms.automation.AutomationException;
import com.mslv.oms.automation.TaskContext;
import com.mslv.oms.automation.plugin.AbstractAutomator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class AlfTestRemoteJbossCall extends AbstractAutomator {
private static final long serialVersionUID = 3364396013799171186L;
private static final Log log = LogFactory.getLog(AlfTestRemoteJbossCall.class);
@Override
public void run(String inputXml, AutomationContext context)
throws AutomationException {
log.info("inputXml " + inputXml);
log.debug/("context " + context);
}
}
How and where do I control that the DEBUG level logging is outputted to the log ?
Assume I have the following java class running in OSM 7.0.1 as an automated task :
package no.acme;
import com.mslv.oms.automation.AutomationContext;
import com.mslv.oms.automation.AutomationException;
import com.mslv.oms.automation.TaskContext;
import com.mslv.oms.automation.plugin.AbstractAutomator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class AlfTestRemoteJbossCall extends AbstractAutomator {
private static final long serialVersionUID = 3364396013799171186L;
private static final Log log = LogFactory.getLog(AlfTestRemoteJbossCall.class);
@Override
public void run(String inputXml, AutomationContext context)
throws AutomationException {
log.info("inputXml " + inputXml);
log.debug/("context " + context);
}
}
How and where do I control that the DEBUG level logging is outputted to the log ?
0