Example usage for java.util.logging Level FINEST

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

Introduction

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

Prototype

Level FINEST

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

Click Source Link

Document

FINEST indicates a highly detailed tracing message.

Usage

From source file:com.google.enterprise.connector.db.diffing.DBHandle.java

@Override
public String toString() {
    LOG.log(Level.FINEST, "Serializing document handle for {0}", documentId);
    return document.toJson();
}

From source file:com.adamantium.company.gwtp.server.spring.ServerModule.java

@Bean
public LoggerFactoryBean getLogger() {
    Logger logger = Logger.getAnonymousLogger();
    logger.setLevel(Level.FINEST);
    return new LoggerFactoryBean(logger);
}

From source file:eu.flatworld.worldexplorer.layer.bmng.BMNGHTTPProvider.java

@Override
public void run() {
    while (true) {
        while (getQueueSize() != 0) {
            Tile tile = peekTile();//ww w.  j a va 2  s .c o m
            synchronized (tile) {
                String s = String.format(BMNGLayer.HTTP_BASE, year, month, 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) {
        }
        ;
    }
}

From source file:name.richardson.james.bukkit.utilities.command.context.AbstractCommandContext.java

/**
 * Constructs a new AbstractCommandContext with the arguments and CommandSender.
 *
 * @param arguments provided arguments/*  ww  w. j av  a  2s. c  om*/
 * @param sender the CommandSender executing the command
 */
public AbstractCommandContext(String[] arguments, CommandSender sender) {
    Validate.notNull(arguments);
    Validate.notNull(sender);
    String argument = StringUtils.join(arguments, " ");
    this.sender = sender;
    setArguments(argument);
    setFlags(argument);
    if (logger.isLoggable(Level.FINEST))
        logger.finest("A command context has been created: " + this.toString());
}

From source file:dataform.sql.query.DefaultTable.java

public void addWhereClause(WhereClause whereClause) {
    if (whereClause != null) {
        try {//  www.  j ava 2  s .  com
            this.whereClause.addWhereClause(whereClause);
        } catch (Exception e) {
            if (logger.getLevel() == Level.FINEST)
                e.printStackTrace();
            logger.log(Level.WARNING, e.getMessage());
        }
    } else {
        logger.log(Level.WARNING, "WhereClause is null.");
    }
}

From source file:wsattacker.plugin.dos.dosExtension.requestSender.RequestSenderImpl.java

private static void disableExtensiveLogging() {
    java.util.logging.Logger.getLogger("org.apache.http.wire").setLevel(java.util.logging.Level.FINEST);
    java.util.logging.Logger.getLogger("org.apache.http.headers").setLevel(java.util.logging.Level.FINEST);
    System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
    System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
    System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire", "ERROR");
    System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http", "ERROR");
    System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.headers", "ERROR");
    System.setProperty("org.apache.commons.httpclient.HttpMethodBase", "ERROR");
}

From source file:io.fabric8.cxf.endpoint.JsonSchemaLookup.java

public String getSchemaForClass(Class<?> clazz) {
    LOG.info("Looking up schema for " + clazz.getCanonicalName());
    String name = clazz.getName();
    try {//from  w w  w.ja  v  a 2  s  . com
        ObjectWriter writer = mapper.writer().with(new FourSpacePrettyPrinter());
        JsonSchemaGenerator jsg = new JsonSchemaGenerator(mapper);
        JsonSchema jsonSchema = jsg.generateSchema(clazz);
        return writer.writeValueAsString(jsonSchema);
    } catch (Exception e) {
        LOG.log(Level.FINEST, "Failed to generate JSON schema for class " + name, e);
        return "";
    }
}

From source file:net.kungfoo.grizzly.proxy.impl.Activator.java

private static void setup() throws IOReactorException {
    setupClient();/*from  w w  w.  ja  v a 2 s. c om*/

    selectorThread = new SelectorThread();
    selectorThread.setPort(8282);
    ProxyAdapter httpProxy = new ProxyAdapter(connectingIOReactor);
    DefaultAsyncHandler handler = new DefaultAsyncHandler();
    handler.addAsyncFilter(new AsyncFilter() {
        @Override
        public boolean doFilter(AsyncExecutor asyncExecutor) {
            final AsyncTask asyncTask = asyncExecutor.getAsyncTask();
            final AsyncHandler asyncHandler = asyncExecutor.getAsyncHandler();
            DefaultProcessorTask task = (DefaultProcessorTask) asyncExecutor.getProcessorTask();
            task.getRequest().setAttribute(ProxyAdapter.CALLBACK_KEY, new Runnable() {
                @Override
                public void run() {
                    asyncHandler.handle(asyncTask);
                }
            });
            task.invokeAdapter();
            return false;
        }
    });
    selectorThread.setAsyncHandler(handler);
    selectorThread.setAdapter(httpProxy);
    selectorThread.setEnableAsyncExecution(true);
    selectorThread.setDisplayConfiguration(true);

    ProxyAdapter.logger.setLevel(Level.FINEST);
    ConsoleHandler consoleHandler = new ConsoleHandler();
    ProxyAdapter.logger.addHandler(consoleHandler);

    ProxyAdapter.logger.log(Level.FINE, "Setup done.");
}

From source file:openones.corewa.control.BaseControl.java

/**
 * This method is invoked by CoreWa.//from   w  w w  . j  a  va 2s .  c o  m
 * @param req
 * @return
 */
public static Map<String, Object> getMapData(HttpServletRequest req) {
    Map<String, Object> result = new HashMap<String, Object>();
    LOG.log(Level.FINEST, "getMapData.START:");
    Object bean = null;

    if (!ServletFileUpload.isMultipartContent(req)) { // Normal form data
        String fieldName;
        for (Enumeration<String> keyEnum = req.getParameterNames(); keyEnum.hasMoreElements();) {
            fieldName = keyEnum.nextElement();
            result.put(fieldName, req.getParameter(fieldName));
        }
        return result;
    } else { // Upload form data
        FileItemFactory fileItemFactory = new DiskFileItemFactory();
        ServletFileUpload portletFU = new ServletFileUpload(fileItemFactory);
        List items;
        try {
            items = portletFU.parseRequest(req);
            FileItem fit;
            String fieldName;
            String value;
            for (Iterator it = items.iterator(); it.hasNext();) {
                fit = (FileItem) it.next();
                fieldName = fit.getFieldName();

                if (fit.isFormField()) { // Normal field
                    value = fit.getString();
                    result.put(fieldName, value);
                } else {
                    result.put(fieldName, fit);
                }
            }
        } catch (FileUploadException ex) {
            LOG.log(Level.FINE, "Parsing the request", ex);
        }

    }
    LOG.log(Level.FINEST, "getMapData.END");

    return result;
}

From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.unsafe.DeflateJsonQueryHandler.java

public DeflateJsonQueryHandler(final String compression) {
    fLogger = Logger.getLogger(this.getClass().getName());
    fDebug = (fLogger.getLevel() == Level.FINEST);

    fInflater = new Inflater(true);

    int tmpComp = DEFAULT_COMPRESSION_LEVEL;

    if (WebsockConstants.FASTEST_COMPRESSION.equals(compression)) {
        tmpComp = Deflater.BEST_SPEED;
    } else if (WebsockConstants.BEST_COMPRESSION.equals(compression)) {
        tmpComp = Deflater.BEST_COMPRESSION;
    } else {//  w  ww.  j a  v a 2  s .c o  m
        fLogger.log(Level.WARNING, "unknown compression level '" + compression + "'; using default.");
    }

    fCompression = tmpComp;
}