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:jp.pigumer.web.SubscribeHandler.java
@SubscribeMapping("/queue/{path}") public void subscribe(@DestinationVariable String path) { LOGGER.log(Level.INFO, String.format("subscribe: %s", path)); }
From source file:neembuu.uploader.versioning.CheckUser.java
public static void getCanCustomizeNormalizing(UserSetPriv usp) { boolean canCustomizeNormalizing = true; String normalization = ".neembuu"; HttpParams params = new BasicHttpParams(); params.setParameter("http.useragent", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6"); HttpClient httpclient = NUHttpClient.getHttpClient(); HttpGet httpget = new HttpGet("http://neembuu.com/uploader/api/user.xml?userid=" + UserImpl.I().uid()); NULogger.getLogger().info("Checking for user priviledges ..."); try {//from w w w .j a v a2 s . com HttpResponse response = httpclient.execute(httpget); String respxml = EntityUtils.toString(response.getEntity()); canCustomizeNormalizing = getCanCustomizeNormalizingFromXml(respxml); normalization = getNormalization(respxml); NULogger.getLogger().log(Level.INFO, "CanCustomizeNormalizing: {0}", canCustomizeNormalizing); } catch (Exception ex) { NULogger.getLogger().log(Level.INFO, "Exception while checking update\n{0}", ex); } usp.setCanCustomizeNormalizing(canCustomizeNormalizing); usp.setNormalization(normalization); }
From source file:net.nperkins.quizmaster3000.AskQuestionRunnable.java
public void start() { plugin.getLogger().log(Level.INFO, "Asking next question."); timer = 45;//w ww .j av a 2s . co m plugin.askQuestion(); id = Bukkit.getScheduler().runTaskTimer(plugin, this, 15 * 20, 15 * 20).getTaskId(); }
From source file:fr.esecure.banking.metier.shedules.ExecuteTask.java
@Scheduled(cron = "${esecure.shedule.frequence.cron}") public void demoServiceMethod() { JobExecutorHistory jobExecutorHistory = new JobExecutorHistory(); LOG.log(Level.INFO, " ***** BEGIN ExecuteTask : Generating CSV Report..... **** "); ParamAcces defaultParamAcces = metier.getDefaultParamAcces(); LOG.log(Level.INFO, " INFORMATIONS PARAMETRE ACCES "); LOG.log(Level.INFO, " 1. ------- INFO MESSAGERIE : " + defaultParamAcces.getMessagerieParam().toString()); LOG.log(Level.INFO, " 2. ------- INFO RAPPORT : " + defaultParamAcces.getRapportParam().toString()); String csvPath = metier.generateTransactionReport(DocumentType.CSV, Periodicite.TOUS_LES_LUNDIS, null); File file = new File(csvPath); jobExecutorHistory.setRapportName(file.getName()); jobExecutorHistory.setRapportPath(file.getAbsolutePath()); jobExecutorHistory.setRapportGenerationParams("CSV - TOUS_LES_LUNDIS - : " + file.getName()); LOG.log(Level.INFO, " ***** ExecuteTask : END CSV Report generation .... **** "); if (csvPath != null && defaultParamAcces.getRapportParam().getParamRapportFormat().equalsIgnoreCase("CSV")) { metier.sendRapport(file.getAbsolutePath()); metier.logJobExecution(jobExecutorHistory); }//from ww w . j a v a 2 s. co m LOG.log(Level.INFO, " ***** BEGIN ExecuteTask : Generating PDF Report..... **** "); String pdfPath = metier.generateTransactionReport(DocumentType.PDF, Periodicite.TOUS_LES_LUNDIS, null); File pdfFile = new File(pdfPath); jobExecutorHistory = new JobExecutorHistory(); jobExecutorHistory.setRapportName(pdfFile.getName()); jobExecutorHistory.setRapportPath(pdfFile.getAbsolutePath()); jobExecutorHistory.setRapportGenerationParams("PDF - TOUS_LES_LUNDIS - " + pdfFile.getName()); if (pdfPath != null && defaultParamAcces.getRapportParam().getParamRapportFormat().equalsIgnoreCase("PDF")) { metier.sendRapport(pdfFile.getAbsolutePath()); metier.logJobExecution(jobExecutorHistory); } LOG.log(Level.INFO, " ***** ExecuteTask : END PDF Report generation ... **** "); }
From source file:org.camunda.bpm.example.spring.jboss.ProcessEngineClient.java
public void afterPropertiesSet() throws Exception { long deployedProcessDefinitionsCount = processEngine.getRepositoryService().createProcessDefinitionQuery() .count();/*from ww w . j a va2s . c o m*/ LOGG.log(Level.INFO, "\n\n\n" + "Hi there!" + "\n" + "I am a spring bean and I am using a container managed process engine provided as JBoss Service for all applications to share." + "\n" + "The engine is named {0}." + "\n" + "There are currently {1} processes deployed on this engine." + "\n\n", new Object[] { processEngine.getName(), deployedProcessDefinitionsCount }); }
From source file:com.josue.eap.resteasy.file.upload.DataResource.java
@POST @Produces(MediaType.TEXT_PLAIN)//from w ww. j a va 2 s. co m @Consumes(MediaType.MULTIPART_FORM_DATA) public String uploadFile(MultipartFormDataInput input, @Context HttpHeaders headers) { for (String header : headers.getRequestHeaders().keySet()) { LOG.log(Level.INFO, "{0} -> {1}", new Object[] { header, headers.getRequestHeaders().getFirst(header) }); } List<FileUpload> files = new FileUploadUtil().parsePartFiles(input); for (FileUpload fu : files) { try { File dest = new File(System.getProperty("jboss.server.data.dir") + "/" + fu.getFileName()); FileUtils.copyInputStreamToFile(fu.getFileStream(), dest); } catch (IOException ex) { Logger.getLogger(DataResource.class.getName()).log(Level.SEVERE, null, ex); } } return "OK"; }
From source file:jp.pigumer.web.UserHandshakeHandler.java
@Override protected Principal determineUser(ServerHttpRequest request, WebSocketHandler wsHandler, Map<String, Object> attributes) { LOGGER.log(Level.INFO, "determineUser"); return () -> "testuser"; }
From source file:Jimbo.Cheerlights.BlinktLights.java
public BlinktLights() { LOG.log(Level.INFO, "Blinkt cheer lights started"); blinkt = new Blinkt(); for (int i = 0; i < data.length; ++i) data[i] = 0;/*w w w .j a v a2 s . c o m*/ }
From source file:com.gorsini.searcher.CanalplaySearcher.java
public void check() throws HTMLChangeException, IOException { String url = makeURL("intouchables"); Document doc = Jsoup.connect(url).referrer("http://vod.canalplay.com/").get(); Elements movies = doc.select("div.list_movie"); String html = movies.html();/*from w ww .ja v a 2 s .c o m*/ String previousHTML = null; LOG.finest(html); File file = new File(CHECK_FILENAME); if (file.exists()) { previousHTML = FileUtils.readFileToString(new File(CHECK_FILENAME)); } else { LOG.log(Level.INFO, "sauvegarde check"); FileUtils.writeStringToFile(file, html); } if (previousHTML != null && !html.equals(previousHTML)) { // sauvegarde la nouvelle version pour pouvoir la comparer. FileUtils.writeStringToFile(new File(CHECK_FILENAME + ".new"), html); throw new HTMLChangeException(); } else { LOG.log(Level.INFO, "no change detected into HTML response"); } }
From source file:bridgempp.PermissionsManager.java
public static void saveAccessKeys() { ShadowManager.log(Level.INFO, "Saving all access keys..."); try {//from w w w . j a v a 2 s. c o m ConfigurationManager.permissionConfiguration.clear(); Iterator<AccessKey> iterator = accessKeys.values().iterator(); while (iterator.hasNext()) { AccessKey key = iterator.next(); AccessKey.writeAccessKey(ConfigurationManager.permissionConfiguration, key); } ConfigurationManager.permissionConfiguration.save(); } catch (ConfigurationException ex) { Logger.getLogger(PermissionsManager.class.getName()).log(Level.SEVERE, null, ex); } ShadowManager.log(Level.INFO, "Saved all access keys..."); }