Example usage for java.util.logging Level FINER

List of usage examples for java.util.logging Level FINER

Introduction

In this page you can find the example usage for java.util.logging Level FINER.

Prototype

Level FINER

To view the source code for java.util.logging Level FINER.

Click Source Link

Document

FINER indicates a fairly detailed tracing message.

Usage

From source file:org.b3log.solo.util.Statistics.java

/**
 * Refreshes online visitor count for the specified request.
 * /*  w ww  .j av  a 2s.co  m*/
 * @param request the specified request
 */
public static void onlineVisitorCount(final HttpServletRequest request) {
    ONLINE_VISITORS.put(request.getRemoteAddr(), System.currentTimeMillis());
    LOGGER.log(Level.FINER, "Current online visitor count [{0}]", ONLINE_VISITORS.size());
}

From source file:org.geoserver.security.keycloak.GeoServerKeycloakFilterConfig.java

/**
 * Convert the adapter configuration into an object we can use to configure the rest of the
 * context.//from w  w w .j a va2  s .c  om
 *
 * @return configuration for the Keycloak-Java adapter
 * @throws IOException if the provided string does not represent valid config
 */
public AdapterConfig readAdapterConfig() throws IOException {
    LOG.log(Level.FINER, "GeoServerKeycloakFilterConfig.readAdapterConfig ENTRY");
    try {
        return KeycloakDeploymentBuilder.loadAdapterConfig(IOUtils.toInputStream(getAdapterConfig()));
    } catch (RuntimeException e) {
        throw new IOException(e);
    }
}

From source file:com.gorsini.searcher.SearcherT411.java

/**
 *
 * @param movieToSearch//w ww. j ava 2  s . c om
 * @return ArrayList<Movie> empty if no result
 */
public ArrayList<Movie> searchMovie(Movie movieToSearch) {
    try {
        /*
         curl "http://vod.canalplay.com/pages/recherche/challengeexplorer.aspx?action=4&search=hercule" -H "Referer: http://vod.canalplay.com/"
         ramne que les films dispo. 
         */
        String titleToSearch = movieToSearch.getTitle();
        LOG.log(Level.FINER, "titre  rechercher : {0}", titleToSearch);
        String url = makeURL(titleToSearch);
        Document doc = Jsoup.connect(url).get();
        Elements movies = doc.select("table.results tbody tr");

        if (movies.isEmpty()) {
            LOG.log(Level.FINER, "no movie found with title {0}", titleToSearch);
            return null;
        } else {
            ArrayList<Movie> result = new ArrayList<Movie>();
            for (Element movie : movies) {
                MovieSelectorT411 selector = new MovieSelectorT411();
                Movie movieFound = selector.selectMovie(movie, movieToSearch);
                if (movieFound != null) {
                    LOG.log(Level.FINER, "film trouv:{0}", movieFound.toString());
                    result.add(movieFound);
                }
            }
            return result;
        }
    } catch (Exception e) {
        System.out.println("problme HTTP");
        //            Log.e(TAG, e.getMessage());
        e.printStackTrace();
        return null;
    }
}

From source file:com.gorsini.searcher.CanalplaySearcher.java

/**
 *
 * @param movieToSearch/*ww w . ja  v  a2s . c  o  m*/
 * @return ArrayList<Movie> empty if no result
 */
public ArrayList<Movie> searchMovie(Movie movieToSearch) {
    try {
        /*
         curl "http://vod.canalplay.com/pages/recherche/challengeexplorer.aspx?action=4&search=hercule" -H "Referer: http://vod.canalplay.com/"
         ramne que les films dispo. 
         */
        String titleToSearch = movieToSearch.getTitle();
        LOG.log(Level.FINER, "titre  rechercher : {0}", titleToSearch);
        String url = makeURL(titleToSearch);
        Document doc = Jsoup.connect(url).referrer("http://vod.canalplay.com/").get();
        Elements movies = doc.select("div.list_movie");

        if (movies.isEmpty()) {
            LOG.log(Level.FINER, "no movie found with title {0}", titleToSearch);
            return null;
        } else {
            ArrayList<Movie> result = new ArrayList<Movie>();
            for (Element movie : movies) {
                MovieSelector selector = new MovieSelector();
                Movie movieFound = selector.selectMovie(movie, movieToSearch);
                if (movieFound != null) {
                    LOG.log(Level.FINER, "film trouv:{0}", movieFound.toString());
                    result.add(movieFound);
                }
            }
            return result;
        }
    } catch (Exception e) {
        System.out.println("problme HTTP");
        e.printStackTrace();
        return null;
    }
}

From source file:org.b3log.solo.service.StatisticMgmtService.java

/**
 * Updates the statistic with the specified statistic.
 *
 * @param statistic the specified statistic
 * @throws ServiceException service exception
 *///from  w ww. j a  va2 s .  c  o m
public void updateStatistic(final JSONObject statistic) throws ServiceException {
    final Transaction transaction = statisticRepository.beginTransaction();
    try {
        statisticRepository.update(Statistic.STATISTIC, statistic);
        transaction.commit();
    } catch (final RepositoryException e) {
        if (transaction.isActive()) {
            transaction.rollback();
        }
        LOGGER.log(Level.SEVERE, "Updates statistic failed", e);
    }

    LOGGER.log(Level.FINER, "Updates statistic successfully");
}

From source file:name.richardson.james.bukkit.alias.persistence.PlayerNameRecordManager.java

public PlayerNameRecord find(String playerName) {
    logger.log(Level.FINER, "Attempting to find PlayerNameRecord matching {0}.", playerName);
    Query<PlayerNameRecord> query = database.createQuery(PlayerNameRecord.class);
    query.where().ieq("playerName", playerName);
    return query.findUnique();
}

From source file:name.richardson.james.bukkit.alias.persistence.InetAddressRecordManager.java

public boolean exists(String address) {
    logger.log(Level.FINER, "Checking if InetAddressRecord matching {0} exists.", address);
    return find(address) != null;
}

From source file:com.stratuscom.harvester.PropertiesFileReader.java

private void readPropertiesFile(FileObject fo) throws FileSystemException, IOException {
    String name = fo.getName().getBaseName();
    Properties props = getProperties(fo);
    context.put(name, props);// www.j a v  a2 s.co m
    log.log(Level.FINE, MessageNames.READ_PROPERTIES_FILE, name);
    if (log.isLoggable(Level.FINER)) {
        log.log(Level.FINER, MessageNames.READ_PROPERTIES, Utils.format(props));
    }
}

From source file:magma.agent.behavior.basic.BeamHomeBehavior.java

@Override
public void perform(float intensity) {
    // the position is based on if we play left to right or right to left
    Vector3D position = worldModel.getThisPlayer().getHomePosition(worldModel.getPlaymode());
    // the z component is the rotation of the player
    setPos((float) position.getX(), (float) position.getY(), (float) position.getZ());

    super.perform(1.0f);

    // after beaming we init gyro
    agentModel.getGyroRate(IServerConfigFilesConstants.GYRORATE_NAMES[0]).initialize();
    logger.log(Level.FINER, "init gyro");
}

From source file:eu.flatworld.worldexplorer.layer.nltl7.NLTL7HTTPProvider.java

@Override
public void run() {
    while (true) {
        while (getQueueSize() != 0) {
            Tile tile = peekTile();//from  w  w w .j a v  a 2s  .  c  o  m
            synchronized (tile) {
                String s = String.format(NLTL7Layer.HTTP_BASE, tile.getL(), tile.getX(), tile.getY());
                LogX.log(Level.FINER, s);
                GetMethod gm = new GetMethod(s);
                gm.setRequestHeader("User-Agent", WorldExplorer.USER_AGENT);
                try {
                    int response = client.executeMethod(gm);
                    LogX.log(Level.FINEST, NAME + " " + response + " " + s);
                    if (response == HttpStatus.SC_OK) {
                        InputStream is = gm.getResponseBodyAsStream();
                        BufferedImage bi = ImageIO.read(is);
                        is.close();
                        if (bi != null) {
                            tile.setImage(bi);
                        }
                    }
                } catch (Exception ex) {
                    LogX.log(Level.FINER, "", ex);
                } finally {
                    gm.releaseConnection();
                }
                LogX.log(Level.FINEST, NAME + " dequeueing: " + tile);
                unqueueTile(tile);
            }
            firePropertyChange(P_DATAREADY, null, tile);
            Thread.yield();
        }
        firePropertyChange(P_IDLE, false, true);
        try {
            Thread.sleep(QUEUE_SLEEP_TIME);
        } catch (Exception ex) {
        }
        ;
    }
}