List of usage examples for java.util.logging Level INFO
Level INFO
To view the source code for java.util.logging Level INFO.
Click Source Link
From source file:demo.buttso.web.QuoteMakerTest.java
@Test public void testQuoteMakerQuote() { Assert.assertTrue(quoteMaker != null); Quote quote = quoteMaker.quote();//w ww .j ava 2s .c o m LOG.log(Level.INFO, "\nQuote: {0}", quote); Assert.assertTrue("Quote is null", quote.getQuote() != null); Assert.assertTrue("Author is null", quote.getAuthor() != null); }
From source file:com.samir.commons.java.jarinstallerkit.jarinstaller.JarInstaller.java
public void doInstallLifeCycle(final String[] args) throws Exception { if (args.length == 0) { moveFile(CURRENT_PATH, Constants.FINAL_APP_TMP); final String pathExec = runCommandAsync(Constants.FINAL_APP_TMP, CMD_TMP); LOGGER.log(Level.INFO, pathExec); System.exit(0);/*from ww w .ja va2 s . c o m*/ } else { final String firstArg = args[0]; if (null != firstArg) { switch (firstArg) { case CMD_TMP: moveFile(Constants.CURRENT_PATH, Constants.FINAL_APP); final String pathExec = runCommandAsync(Constants.FINAL_APP, CMD_INIT); LOGGER.log(Level.INFO, pathExec); System.exit(0); case CMD_INIT: LOGGER.log(Level.INFO, "init"); setupBootRegister(); break; } } } }
From source file:com.leqcar.interfaces.command.ValetCommandController.java
@RequestMapping(method = RequestMethod.PUT, path = "/{valetId}/cancel") public ResponseEntity<ValetResponse> cancelValetRequest(@PathVariable("valetId") String valetId) { LOG.log(Level.INFO, "-- cancelling request ---"); ValetResponse response = valetCommandService.cancelRequest(valetId); response.add(linkTo(ValetCommandController.class).slash(response.getValetId()).withSelfRel()); return ResponseEntity.ok(response); }
From source file:edu.uci.ics.pregelix.example.asterixdb.ConnectorTest.java
@BeforeClass public static void setUp() throws Exception { System.out.println("Starting setup"); if (LOGGER.isLoggable(Level.INFO)) { LOGGER.info("Starting setup"); }//from w ww . jav a 2s . c o m System.setProperty(GlobalConfig.CONFIG_FILE_PROPERTY, TEST_CONFIG_FILE_NAME); File outdir = new File(PATH_ACTUAL); outdir.mkdirs(); AsterixPropertiesAccessor apa = new AsterixPropertiesAccessor(); txnProperties = new AsterixTransactionProperties(apa); deleteTransactionLogs(); if (LOGGER.isLoggable(Level.INFO)) { LOGGER.info("initializing pseudo cluster"); } AsterixHyracksIntegrationUtil.init(); if (LOGGER.isLoggable(Level.INFO)) { LOGGER.info("initializing HDFS"); } // Set the node resol ver to be the identity resolver that expects node names // to be node controller ids; a valid assumption in test environment. System.setProperty(FileSystemBasedAdapter.NODE_RESOLVER_FACTORY_PROPERTY, IdentitiyResolverFactory.class.getName()); // Starts HDFS setUpPregelix(); ClusterConfig.setClusterPropertiesPath(PATH_TO_CLUSTER_PROPERTIES); ClusterConfig.setStorePath(PATH_TO_CLUSTER_STORE); }
From source file:org.syncany.connection.plugins.webdav.WebdavTransferManager.java
@Override public void connect() throws StorageException { if (sardine == null) { logger.log(Level.INFO, "WebDAV: Connect called. Creating Sardine ..."); if (getConnection().isSecure()) { final SSLSocketFactory sslSocketFactory = getConnection().getSslSocketFactory(); sardine = new SardineImpl() { @Override/*www . j a v a2s . c om*/ protected SSLSocketFactory createDefaultSecureSocketFactory() { return sslSocketFactory; } }; sardine.setCredentials(getConnection().getUsername(), getConnection().getPassword()); } else { sardine = SardineFactory.begin(getConnection().getUsername(), getConnection().getPassword()); } } }
From source file:maltcms.ui.fileHandles.properties.graph.widget.PipelineElementWidget.java
@Override public void setProperty(String key, Object value) { Logger.getLogger(getClass().getName()).log(Level.INFO, "Changing Key {0}", key); if (this.properties.containsKey(key) && key.endsWith(CLASS_NAME)) { Logger.getLogger(getClass().getName()).log(Level.INFO, "Have to remove old properties for {0}:{1}", new Object[] { key, this.properties.getProperty(key) }); removeKeysForClassNameKey((String) this.properties.getProperty(key)); }//www . j a v a2 s .c o m super.setProperty(key, value); checkFurtherClassNames(); }
From source file:com.seekret.data.flickr.FlickrRequestHandler.java
public Set<PointOfInterest> getPOIsForSpot(Spot spot) { Set<PointOfInterest> result = new HashSet<PointOfInterest>(); HashMap<LatLng, Double> calculateNewPoint = calculateNewPoint(spot); List<String> picture_ids = new ArrayList<String>(); for (Entry<LatLng, Double> entry : calculateNewPoint.entrySet()) { int requestedPage = 1; int logBarrier = 1; int numberPages = 1; int maxViewCount = 0; LatLng position = entry.getKey(); double radiusInKm = entry.getValue().doubleValue(); do {/* w ww.jav a 2 s. c om*/ String urlForRequest = buildPhotoRequestURL(requestedPage, position, radiusInKm, LicenseEnum.ALL); JsonObject photosObject; try { if (requestedPage == logBarrier) { logBarrier *= 2; log.log(Level.INFO, "Retrieving all images for spot " + spot + " (page=" + requestedPage + ",numberPages=" + numberPages + ") -> " + urlForRequest); } String jsonResponse = Request.Get(urlForRequest.toString()).execute().returnContent() .asString(); requestedPage++; photosObject = JsonObject.readFrom(jsonResponse); numberPages = handleFlickrPictureResult(result, picture_ids, numberPages, maxViewCount, photosObject); } catch (Exception e) { log.log(Level.WARNING, "Could not load picture page from flickr", e); } // We need to make this algorithm more efficient } while ((requestedPage < numberPages) && (requestedPage < MAX_NUMBER_PAGES_TO_CRAWL) && result.size() < 10000); log.log(Level.INFO, "NUMBER OF PICTURES " + picture_ids.size()); } return result; }
From source file:net.chrissearle.flickrvote.web.vote.VoteAction.java
@Override public String execute() throws Exception { if (logger.isLoggable(Level.FINE)) { logger.fine("execute"); }/*from ww w . java2s . c o m*/ Photographer photographer = (Photographer) session.get(FlickrVoteWebConstants.FLICKR_USER_SESSION_KEY); if (logger.isLoggable(Level.INFO)) { logger.info("Votes by: " + photographer.getPhotographerName() + " [" + photographer.getPhotographerId() + "] : " + votes); } if (challengeService.hasVoted(photographer.getPhotographerId())) { if (logger.isLoggable(Level.INFO)) { logger.info("Photographer has already voted: " + photographer.getPhotographerName() + " [" + photographer.getPhotographerId() + "] : " + votes); } } else { for (String imageId : votes) { challengeService.vote(photographer.getPhotographerId(), imageId); } addActionMessage(getText("vote.thanks")); } return SUCCESS; }
From source file:com.neophob.sematrix.core.output.E1_31Device.java
/** * /* www .j a v a 2s . c o m*/ * @param controller */ public E1_31Device(ApplicationConfigurationHelper ph, int nrOfScreens) { super(OutputDeviceEnum.E1_31, ph, 8, nrOfScreens); this.displayOptions = ph.getE131Device(); //Get dmx specific config this.pixelsPerUniverse = ph.getE131PixelsPerUniverse(); try { String ip = ph.getE131Ip(); String sendMode = "Unicast"; if (StringUtils.startsWith(ip, MULTICAST_START)) { this.sendMulticast = true; sendMode = "Multicast"; } this.targetAdress = InetAddress.getByName(ip); this.firstUniverseId = ph.getE131StartUniverseId(); calculateNrOfUniverse(); packet = new DatagramPacket(new byte[0], 0, targetAdress, E1_31DataPacket.E131_PORT); dsocket = new DatagramSocket(); this.initialized = true; LOG.log(Level.INFO, "E1.31 device initialized, send mode: " + sendMode + ", use " + this.displayOptions.size() + " panels"); } catch (Exception e) { LOG.log(Level.WARNING, "failed to initialize E1.31 device", e); } }
From source file:co.mcme.animations.MCMEAnimations.java
@Override public void onEnable() { MCMEAnimationsInstance = this; final PluginManager pm = getServer().getPluginManager(); final Plugin WEplugin = getServer().getPluginManager().getPlugin("WorldEdit"); WEPlugin = (WorldEditPlugin) WEplugin; getCommand("anim").setExecutor(new AnimationCommands()); getCommand("manage").setExecutor(new AnimationManager()); loadAnimations();/*www .jav a2 s . c o m*/ PluginDescriptionFile pdfFile = this.getDescription(); getLogger().log(Level.INFO, "{0} version {1}is enabled!", new Object[] { pdfFile.getName(), pdfFile.getVersion() }); final Plugin plugin = this; getServer().getScheduler().runTaskLater(this, new Runnable() { @Override public void run() { pm.registerEvents(triggerListener, plugin); getLogger().info("TriggerListener successfully registered."); } }, 10); }