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:edu.umass.cs.gnsclient.client.util.SimpleKeyStore.java
public static void main(String[] args) { SimpleKeyStore keyStore = new SimpleKeyStore(); if (args.length == 1 && args[0].startsWith("-drop")) { keyStore.dropTable(TABLE_NAME);// ww w .j av a2s. c o m GNSClientConfig.getLogger().info("Dropped table " + TABLE_NAME); keyStore.showAllTables(); } else { try { keyStore.suppressUpdateRead = true; for (String key : keyStore.keys()) { GNSClientConfig.getLogger().log(Level.INFO, "{0} -> {1} '{'U:{2}, R:{3}'}'", new Object[] { key, keyStore.get(key, null), formatPrettyDateUTC(keyStore.updateTime(key)), formatPrettyDateUTC(keyStore.readTime(key)) }); } } finally { keyStore.suppressUpdateRead = false; } String value = "value-" + RandomString.randomString(6); GNSClientConfig.getLogger().log(Level.INFO, "Putting {0}", value); keyStore.put("frank", value); GNSClientConfig.getLogger().log(Level.INFO, "New value is {0}", keyStore.get("frank", null)); keyStore.shutdown(); } }
From source file:bridgempp.GroupManager.java
public static void loadAllGroups() { ShadowManager.log(Level.INFO, "Loading all groups..."); int numGroups = ConfigurationManager.groupConfiguration.getRoot().getChild(0).getChildrenCount(); for (int g = 0; g < numGroups; g++) { Group group = new Group(); group.setName(ConfigurationManager.groupConfiguration.getString("groups.group(" + g + ").name")); int numEndpoints = ConfigurationManager.groupConfiguration.getRoot().getChild(0).getChild(g) .getChildrenCount() - 1; for (int e = 0; e < numEndpoints; e++) { Endpoint endpoint = Endpoint.readEndpoint(ConfigurationManager.groupConfiguration, "groups.group(" + g + ").endpoint(" + e + ")."); endpoint.getService().addEndpoint(endpoint); group.addEndpoint(endpoint); }/* w w w. j a va2 s . c om*/ groups.add(group); } ShadowManager.log(Level.INFO, "Loaded all groups"); }
From source file:havocx42.Program.java
private static void initRootLogger() throws SecurityException, IOException { FileHandler fileHandler;/*www . ja v a 2 s. c o m*/ fileHandler = new FileHandler("PRWeaponStats.%u.%g.txt", 1024 * 1024 * 8, 3, false); fileHandler.setLevel(Level.FINEST); fileHandler.setFormatter(new SimpleFormatter()); Logger rootLogger = Logger.getLogger(""); Handler[] handlers = rootLogger.getHandlers(); for (Handler handler : handlers) { handler.setLevel(Level.INFO); } rootLogger.setLevel(Level.FINEST); rootLogger.addHandler(fileHandler); }
From source file:be.isl.desamouryv.sociall.service.FileServiceImpl.java
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) @Override/*from www. j av a 2s.c om*/ public String storeFile(InputStream input, String fileName, String uploadPath) throws IOException { logger.log(Level.INFO, "uploadPath: {0}", uploadPath); String prefix = FilenameUtils.getBaseName(fileName).replaceAll(" ", ""); String suffix = FilenameUtils.getExtension(fileName); File tempFile = File.createTempFile(prefix + "-", "." + suffix, new File(uploadPath)); OutputStream output = new FileOutputStream(tempFile); try { IOUtils.copy(input, output); } finally { IOUtils.closeQuietly(output); IOUtils.closeQuietly(input); } logger.log(Level.INFO, "file uploaded at: {0}", tempFile.getAbsolutePath()); return tempFile.getName(); }
From source file:com.kahlon.guard.controller.example.SimpleBean.java
public String saveRecord() { Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Save Record works"); return null; }
From source file:jp.pigumer.web.SubscribeListener.java
@Override public void onApplicationEvent(SessionSubscribeEvent e) { LOGGER.log(Level.INFO, e.toString()); }
From source file:com.aalto.controllers.ProjectController.java
@RequestMapping(value = "/newProject", method = RequestMethod.POST) public Project createProject(@RequestParam Map<String, String> reqParams) { logger.log(Level.INFO, "log: ProjectController newProject!!"); logger.log(Level.INFO, reqParams.toString()); String name = reqParams.get("name"); Project newProject = new Project(name); Long pid = this.projectRepo.save(newProject); Project savedProject = this.projectRepo.find(pid); return savedProject; }
From source file:com.intuit.craftdemo.ResponseHandler.java
public void printResult() { StringBuilder count = new StringBuilder("Count: ").append(getCount()); LOGGER.log(Level.INFO, count.toString()); getResultList();//from ww w.j a v a 2 s. co m for (Result result : resultList) { LOGGER.log(Level.INFO, result.toString()); } }
From source file:org.cloudifysource.azure.AbstractCliAzureDeploymentTest.java
protected static void log(String message) { logger.log(Level.INFO, message); }
From source file:LogWindow.java
private WindowHandler() { LogManager manager = LogManager.getLogManager(); String className = this.getClass().getName(); String level = manager.getProperty(className + ".level"); setLevel(level != null ? Level.parse(level) : Level.INFO); if (window == null) window = new LogWindow(); }