Package java.util.logging

Examples of java.util.logging.Logger.fine()


  @SuppressWarnings("unchecked")
  private void handleFacebookRegistration(HttpServletRequest req, HttpServletResponse resp) throws IOException {
   
    Logger logger = Logger.getLogger(RegisterFacebookPlayerServlet.class.getName());
   
    logger.fine("decoding signed_request and getting registration details");
   
    String input = (String)req.getParameter("signed_request").toString();
   
    Map<String, Object> jsonMap = new HashMap<String, Object>();
   
View Full Code Here


    Logger logger = Logger.getLogger(DatastoreHelper.class.getName());
   
    PersistenceManager pm = PMF.get().getPersistenceManager();
    Query query = pm.newQuery("SELECT FROM " + Player.class.getName() + " WHERE nickname == " + name);
   
    logger.fine("executing query :" + query.toString());
   
    @SuppressWarnings("unchecked")
    List<Player> attachedPlayers = (List<Player>)query.execute();
   
    if (attachedPlayers == null) {
View Full Code Here

   
    @SuppressWarnings("unchecked")
    List<Player> attachedPlayers = (List<Player>)query.execute();
   
    if (attachedPlayers == null) {
      logger.fine("query returned null!");
      return null;
    }
   
    List<Player> players = detachList(pm, attachedPlayers);
    if (players.size() != 1) return null;
View Full Code Here

    // possible workaround and more debug info on #784
    if (uiClassname == null) {
        Logger logger = Logger.getLogger("LookAndFeelAddons");
        logger.warning("Failed to retrieve UI for " + component.getClass().getName() + " with UIClassID " + component.getUIClassID());
        if (logger.isLoggable(Level.FINE)) {
            logger.fine("Existing UI defaults keys: "
                        + new ArrayList<Object>(UIManager.getDefaults().keySet()));
        }
        // really ugly hack. Should be removed as soon as we figure out what is causing the issue
        uiClassname = "org.jdesktop.swingx.plaf.basic.Basic" + expectedUIClass.getSimpleName();
    }
View Full Code Here

        logger.info("Searching for paintables..");
        long start = System.currentTimeMillis();
        Collection<Class<? extends Paintable>> paintables = new HashSet<Class<? extends Paintable>>();
        Set<String> keySet = classpathLocations.keySet();
        for (String url : keySet) {
            logger.fine("Searching for paintables in "
                    + classpathLocations.get(url));
            searchForPaintables(classpathLocations.get(url), url, paintables);
        }
        long end = System.currentTimeMillis();
View Full Code Here

            include(null, file, locations);
        }
        long end = System.currentTimeMillis();
        Logger logger = getLogger();
        if (logger.isLoggable(Level.FINE)) {
            logger.fine("getClassPathLocations took " + (end - start) + "ms");
        }
        return locations;
    }

    /**
 
View Full Code Here

    public static URL getDefaultSourceDirectory() {

        final Logger logger = getLogger();

        if (logger.isLoggable(Level.FINE)) {
            logger.fine("classpathLocations values:");
            ArrayList<String> locations = new ArrayList<String>(
                    classpathLocations.keySet());
            for (String location : locations) {
                logger.fine(String.valueOf(classpathLocations.get(location)));
            }
View Full Code Here

        if (logger.isLoggable(Level.FINE)) {
            logger.fine("classpathLocations values:");
            ArrayList<String> locations = new ArrayList<String>(
                    classpathLocations.keySet());
            for (String location : locations) {
                logger.fine(String.valueOf(classpathLocations.get(location)));
            }
        }

        Iterator<String> it = rawClasspathEntries.iterator();
        while (it.hasNext()) {
View Full Code Here

    if (files.length == 0) {
      log.info("No files in " + dir);
    }
    log.info("Deleting " + files.length + " files in " + dir);
    for (File f : files) {
      log.fine("deleting '" + f + "'");
      f.delete();

    }
    log.info("Done.");
    files = getFiles(dir);
View Full Code Here

                        for (String string : childrenNames) {
                            final Preferences node = root.node(string);

                            long time = node.getLong("last.pass", 0);
                            if (time < System.currentTimeMillis() - 2000) {
                                lgger.fine("Removing old node " + node.name());
                                node.removeNode();
                            }
                        }
                    } catch (BackingStoreException e1) {
                        lgger.fine("Error getting children ...");
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.