Package org.openeai.config

Examples of org.openeai.config.LoggerConfig


    // this command.
    try {
      logger.info("[I2sRequestCommand] Configuring a logger for the command. " +
        "If no logger configuration is specified with this command, the " +
        "command will set its logger to be that of org.openeai.OpenEaiObject.");
      LoggerConfig lConfig = new LoggerConfig();
      lConfig = (LoggerConfig)getAppConfig()
        .getObjectByType(lConfig.getClass().getName());
      logger = Category.getInstance(getClass().getName());
      PropertyConfigurator.configure(lConfig.getProperties());
    }
    catch (Exception e) {
      logger.warn("[I2sRequestCommand] There was an error configuring the " +
        "logger or a logger configuration for this command does not exist, " +
        "setting logger to be org.openeai.OpenEaiObject.logger.");
View Full Code Here


        System.out.println(errMsg);
        ecoe.printStackTrace();
      }
      // Get the logger from AppConfig.
      try {
        LoggerConfig lConfig = new LoggerConfig();
        lConfig = (LoggerConfig)appConfig.getObjectByType(lConfig.getClass()
          .getName());
        logger = Category.getInstance("org.openeai.SelfService.SelfServiceProducer");
        PropertyConfigurator.configure(lConfig.getProperties());
      }
      catch (Exception e) {
        logger = org.openeai.OpenEaiObject.logger;
      }   
    System.out.println("["+this.getClass().getSimpleName()+"] Got a logger. If it's working, you'll see the same message...");
View Full Code Here

        throw new PortletException(errMsg);
      }
     
      // Get the logger from AppConfig.
      try {
        LoggerConfig lConfig = new LoggerConfig();
        lConfig = (LoggerConfig)appConfig.getObjectByType(lConfig.getClass()
          .getName());
        logger = Category.getInstance("org.openeai.SelfService.SelfServiceProducer");
        PropertyConfigurator.configure(lConfig.getProperties());
      }
      catch (Exception e) {
        logger = org.openeai.OpenEaiObject.logger;
      }   
      // Get the producer from AppConfig.
View Full Code Here

        throw new PortletException(errMsg);
      }
     
      // Get the logger from AppConfig.
      try {
        LoggerConfig lConfig = new LoggerConfig();
        lConfig = (LoggerConfig)appConfig.getObjectByType(lConfig.getClass()
          .getName());
        logger = Category.getInstance("org.openeai.SelfService.SelfServiceProducer");
        PropertyConfigurator.configure(lConfig.getProperties());
      }
      catch (Exception e) {
        logger = org.openeai.OpenEaiObject.logger;
      }   
      // Get the producer from AppConfig.
View Full Code Here

TOP

Related Classes of org.openeai.config.LoggerConfig

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.