pattern = LogManager.getLogManager().getProperty( "java.util.logging.FileHandler.pattern");
pattern = LogManager.getLogManager().getProperty(PATTERN_KEY);
  private OutputStream createFileStream(String pattern,						       int limit,						       int count,						       boolean append,						       int generation)  {    String  path;    int     unique = 0;    /* Throws a SecurityException if the caller does not have     * LoggingPermission("control").     */    LogManager.getLogManager().checkAccess();    /* Default value from the java.util.logging.FileHandler.pattern     * LogManager configuration property.     */    if (pattern == null)      pattern = LogManager.getLogManager().getProperty(                              "java.util.logging.FileHandler.pattern");    if (pattern == null)      pattern = "%h/java%u.log";    if (count > 1 && !has (pattern, 'g'))      pattern = pattern + ".%g";    do    {      path = replaceFileNameEscapes(pattern, generation, unique, count);      try      {	File file = new File(path);        if (!file.exists () || append)          {            FileOutputStream fout = new FileOutputStream (file, append);            // FIXME we need file locks for this to work properly, but they            // are not implemented yet in Classpath! Madness!//             FileChannel channel = fout.getChannel ();//             FileLock lock = channel.tryLock ();//             if (lock != null) // We've locked the file.//               {                if (logFiles.isEmpty ())                  logFiles.addFirst (path);                return new ostr (fout);//               }          }      }      catch (Exception ex)      {        reportError (null, ex, ErrorManager.OPEN_FAILURE);      }      unique = unique + 1;      if (!has (pattern, 'u'))        pattern = pattern + ".%u";    }    while (true);  }