Package net.sf.jpluck.util

Examples of net.sf.jpluck.util.LogFormatter


    String logFile = conf.getLogFile();
    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


    textArea = new JEditTextArea(defaults);
    textArea.setEditable(false);
    textArea.setBorder(UIManager.getBorder("TextField.border"));

    logUtil = new LogUtil(LogUtil.DEFAULT_LOGGER_NAMES);
    logHandler = new JEditTextAreaHandler(textArea, new LogFormatter());
    logUtil.addHandler(logHandler);

    FormLayout formLayout = new FormLayout("fill:250dlu:grow",
                         "pref, 4dlu, pref, 4dlu, pref, 4dlu, pref, " +
                         "7dlu, fill:pref:grow");
View Full Code Here

TOP

Related Classes of net.sf.jpluck.util.LogFormatter

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.