List of usage examples for java.util.logging Level FINE
Level FINE
To view the source code for java.util.logging Level FINE.
Click Source Link
From source file:org.cloudfoundry.reconfiguration.tomee.DelegatingPropertiesProvider.java
private PropertiesProvider getPropertiesProvider(ServiceInfo serviceInfo) { final ServiceLoader<PropertiesProvider> serviceLoader = ServiceLoader.load(PropertiesProvider.class); for (PropertiesProvider propertiesProvider : serviceLoader) { if (propertiesProvider.canProvide(serviceInfo)) { if (logger.isLoggable(Level.FINE)) { logger.fine("Found suitable PropertiesProvider for serviceId " + serviceId + ": " + propertiesProvider.getClass()); }/*from w ww. j a v a 2s . com*/ return propertiesProvider; } } throw new ConfigurationException( "Cannot find suitable PropertiesProvider for serviceId " + serviceId + ": " + serviceInfo); }
From source file:io.fabric8.cxf.endpoint.IgnorePropertiesBackedByTransientFields.java
/** * Returns false if the getter method just return the declaringClass itself to avoid the * recusive dead loop/*from w w w. j a v a 2s . com*/ * @return */ protected boolean isGetterMethodRetItselfVisible(Method method, Class<?> declaringClass) { if (method != null && method.getReturnType().getName().equals(declaringClass.getName())) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Ignoring getter " + method + " due to return same type as declaringClass itself"); } return false; } return true; }
From source file:eu.europa.ejusticeportal.dss.applet.model.service.FileSeeker.java
/** * Search for files//from ww w . j av a 2s.c om * @param fileFilter the filter for the file name * @param rootDir the root of the search * @param dirFilter the filter for the directories * @return the set of files found */ private Set<String> search(WildcardFileFilter fileFilter, final File rootDir, IOFileFilter dirFilter) { Set<String> result = new HashSet<String>(); LOG.log(Level.FINE, "Listing files for {0}, {1}, {2}", new Object[] { fileFilter, rootDir, dirFilter }); for (File f : FileUtils.listFiles(rootDir, fileFilter, dirFilter)) { result.add(f.getAbsolutePath()); LOG.log(Level.FINE, "Found matching file: {0}", f.getAbsolutePath()); } return result; }
From source file:org.cogsurv.cogsurver.http.AbstractHttpApi.java
public String doHttpPost(String url, NameValuePair... nameValuePairs) throws CogSurvCredentialsException, CogSurvParseException, CogSurvException, IOException { if (DEBUG)// ww w. j av a2s . c o m LOG.log(Level.FINE, "doHttpPost: " + url); HttpPost httpPost = createHttpPost(url, nameValuePairs); HttpResponse response = executeHttpRequest(httpPost); if (DEBUG) LOG.log(Level.FINE, "executed HttpRequest for: " + httpPost.getURI().toString()); switch (response.getStatusLine().getStatusCode()) { case 200: try { return EntityUtils.toString(response.getEntity()); } catch (ParseException e) { throw new CogSurvParseException(e.getMessage()); } case 401: response.getEntity().consumeContent(); throw new CogSurvCredentialsException(response.getStatusLine().toString()); case 404: response.getEntity().consumeContent(); throw new CogSurvException(response.getStatusLine().toString()); default: response.getEntity().consumeContent(); throw new CogSurvException(response.getStatusLine().toString()); } }
From source file:com.speed.ob.Obfuscator.java
private static Level parseLevel(String lvl) { if (lvl.equalsIgnoreCase("info")) { return Level.INFO; } else if (lvl.equalsIgnoreCase("warning")) { return Level.WARNING; } else if (lvl.equalsIgnoreCase("fine")) { return Level.FINE; } else if (lvl.equalsIgnoreCase("finer")) { return Level.FINER; } else if (lvl.equalsIgnoreCase("finest")) { return Level.FINEST; } else if (lvl.equalsIgnoreCase("all")) { return Level.ALL; } else if (lvl.equalsIgnoreCase("severe")) { return Level.SEVERE; } else if (lvl.equalsIgnoreCase("config")) { return Level.CONFIG; }/*from ww w. j a v a 2 s . c om*/ return Level.INFO; }
From source file:org.gvnix.service.roo.addon.addon.ws.importt.WSImportOperationsImpl.java
/** * {@inheritDoc}/*w w w . ja va2 s .c om*/ * <p> * If the class to add annotation doesn't exist it will be created * automatically in 'src/main/java' directory inside the package defined. * </p> */ public void addImportAnnotation(JavaType serviceClass, String wsdlLocation) { // Check URL connection and WSDL format securityService.getWsdl(wsdlLocation); // Service class path String fileLocation = projectOperations.getPathResolver().getIdentifier( LogicalPath.getInstance(Path.SRC_MAIN_JAVA, ""), serviceClass.getFullyQualifiedTypeName().replace('.', '/').concat(".java")); // If class not exists, create it if (!fileManager.exists(fileLocation)) { // Create service class with Service Annotation. javaParserService.createServiceClass(serviceClass); LOGGER.log(Level.FINE, "New service class created: " + serviceClass.getFullyQualifiedTypeName()); } // Check if import annotation is already defined if (javaParserService.isAnnotationIntroduced(GvNIXWebServiceProxy.class.getName(), typeLocationService.getTypeDetails(serviceClass))) { LOGGER.log(Level.WARNING, "Provided class is already importing a service"); } else { // Add the import definition annotation and attributes to the class List<AnnotationAttributeValue<?>> annotationAttributeValues = new ArrayList<AnnotationAttributeValue<?>>(); annotationAttributeValues .add(new StringAttributeValue(new JavaSymbolName("wsdlLocation"), wsdlLocation)); annotationsService.addJavaTypeAnnotation(serviceClass, GvNIXWebServiceProxy.class.getName(), annotationAttributeValues, false); // Add GvNixAnnotations to the project. annotationsService.addAddonDependency(); } }
From source file:WeakSet.java
/** * logs iterator chain (for debugging)/*from ww w . j a v a2 s . c o m*/ * @param msg */ void logIterChain(String msg) { Logger log = Logger.getLogger(WeakSet.class.getName()); log.log(Level.FINE, msg); if (iterChain == null) { log.log(Level.FINE, "Empty"); return; } StringBuilder str = new StringBuilder(); Entry<E> it = iterChain; str.append(size + ": "); while (it != null) { str.append(it.get() + "(" + it.hashcode + ")" + "->"); it = it.iterChainNext; } log.log(Level.FINE, str.toString()); }
From source file:com.ibm.liberty.starter.ProjectConstructor.java
private void cleanUpDynamicPackages() throws IOException { // Delete dynamically generated packages as they were already packaged. // ** Note **: Don't delete these packages prior to this stage as other operations may depend on the existence of these packages to perform certain tasks. for (Service service : inputData.services.getServices()) { String serviceId = service.getId(); String packageLocation = inputData.workspaceDirectory + "/" + serviceId + "/" + StarterUtil.PACKAGE_DIR; File packageDir = new File(packageLocation); if (packageDir.exists() && packageDir.isDirectory()) { FileUtils.deleteDirectory(packageDir); log.log(Level.FINE, "Deleted package directory for " + serviceId + " technology. : " + packageLocation); }//from w w w . j av a 2 s. c om } }
From source file:io.fabric8.cxf.endpoint.ManagedApi.java
@ManagedAttribute(description = "The cxf servlet context", currencyTimeLimit = 60) public String getServletContext() { if (!isInOSGi()) { LOG.log(Level.FINE, "Not In OSGi."); return getSingletonCxfServletContext(); }//from w w w . j a va 2 s .com String ret = "/cxf"; //if can't get it from configAdmin use the default value if (getConfigurationAdmin() != null) { try { Configuration configuration = getConfigurationAdmin().getConfiguration("org.apache.cxf.osgi"); if (configuration != null) { Dictionary properties = configuration.getProperties(); if (properties != null) { String servletContext = (String) configuration.getProperties() .get("org.apache.cxf.servlet.context"); if (servletContext != null) { ret = servletContext; } } } } catch (IOException e) { LOG.log(Level.WARNING, "getServletContext failed.", e); } } return ret; }
From source file:net.chrissearle.spring.twitter.spring.Twitter4jFollowService.java
private List<String> populateUsernameList(IDs ids) throws TwitterException { List<String> usernames = new ArrayList<String>(); for (int id : ids.getIDs()) { User user = twitter.showUser(id); if (logger.isLoggable(Level.FINE)) { logger.fine(new StringBuilder().append("Saw user: ").append(user.getName()).append(" ") .append(user.getScreenName()).toString()); }/*from ww w . j a va2s . c om*/ usernames.add(user.getScreenName()); } return usernames; }