| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.quicksetup; |
| | |
| | | */ |
| | | public class QuickSetupLog { |
| | | |
| | | /** Suffix for log files. */ |
| | | static public final String LOG_FILE_SUFFIX = ".log"; |
| | | |
| | | static private File logFile = null; |
| | | static private FileHandler fileHandler = null; |
| | | |
| | |
| | | |
| | | static private String getInitialLogRecord() { |
| | | // Note; currently the logs are not internationalized. |
| | | StringBuilder sb = new StringBuilder() |
| | | .append("QuickSetup application launched " + |
| | | DateFormat.getDateTimeInstance(DateFormat.LONG, |
| | | DateFormat.LONG). |
| | | format(new Date())); |
| | | return sb.toString(); |
| | | return "QuickSetup application launched " + |
| | | DateFormat.getDateTimeInstance(DateFormat.LONG, |
| | | DateFormat.LONG).format(new Date()); |
| | | } |
| | | |
| | | private static boolean disableLoggingToConsole() |