Package org.rioproject.logging

Examples of org.rioproject.logging.ServiceLogEventHandler


public class LoggingSimpleImpl implements Simple {
    Logger logger = LoggerFactory.getLogger(LoggingSimpleImpl.class.getName());
   
    public String hello(String message)  {
        if(System.getProperty("org.rioproject.serviceBeanExec")!=null) {
            ServiceLogEventHandler handler = ServiceLogEventHandlerHelper.findInstance();
            if(handler!=null) {
                handler.addPublishableLogger(logger.getName());
                handler.setPublishOnLevel("INFO");
                logger.info("Set to INFO");
            } else {
                logger.error("Unable to obtain a ServiceLogEventHandler");
            }
        }
View Full Code Here


        EventDescriptor slaEventDesc = SLAThresholdEvent.getEventDescriptor();
        slaEventHandler = new DispatchEventHandler(slaEventDesc, config);
        getEventTable().put(slaEventDesc.eventID, slaEventHandler);
        addAttribute(slaEventDesc);

        ServiceLogEventHandler appender = ServiceLogEventHandlerHelper.findInstance();
        if(appender!=null) {
            applyServiceLogEventHandlerProperties(appender, config);
        } else {
            logger.error("Unable to obtain a ServiceLogEventHandler");
        }
View Full Code Here

TOP

Related Classes of org.rioproject.logging.ServiceLogEventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.