Package net.sf.jpluck.util

Examples of net.sf.jpluck.util.LogUtil.addHandler()


    FileHandler fileHandler = null;
    if (conf.isLogEnabled() && logFile.length() > 0) {
      try {
        fileHandler = new FileHandler(logFile, conf.getMaxLogSize() * 1024, 1, true);
        fileHandler.setFormatter(new LogFormatter());
        logUtil.addHandler(fileHandler);
      } catch (IOException e) {
        logger.warning("Could not create log file " + e.getMessage());
      }
    }

View Full Code Here


        OptionsUtil.printVersion("JPluckC", VersionInfo.VERSION, VersionInfo.RELEASE_DATE);
        System.exit(ExitCodes.OK);
      }

      LogUtil logUtil = new LogUtil(LogUtil.DEFAULT_LOGGER_NAMES);
      logUtil.addHandler(new SystemOutHandler());
      logUtil.setUseParentHandler(false);

      String[] args = cl.getArgs();
      JXL jxl = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.