Package org.syncany.config

Examples of org.syncany.config.LogFormatter


      logFilePattern = UserConfig.getUserLogDir() + File.separator + LOG_FILE_PATTERN;
    }

    if (logFilePattern != null) {
      Handler fileLogHandler = new FileHandler(logFilePattern, LOG_FILE_LIMIT, LOG_FILE_COUNT, true);
      fileLogHandler.setFormatter(new LogFormatter());

      Logging.addGlobalHandler(fileLogHandler);
    }

    // --debug, add console handler
    if (options.has(optionDebug) || options.has(optionLogPrint) || (options.has(optionLog) && "-".equals(options.valueOf(optionLog)))) {
      Handler consoleLogHandler = new ConsoleHandler();
      consoleLogHandler.setFormatter(new LogFormatter());

      Logging.addGlobalHandler(consoleLogHandler);
    }
  }
View Full Code Here

TOP

Related Classes of org.syncany.config.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.