Example usage for java.util.logging Level INFO

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

Introduction

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

Prototype

Level INFO

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

Click Source Link

Document

INFO is a message level for informational messages.

Usage

From source file:com.infullmobile.jenkins.plugin.restrictedregister.util.Utils.java

public static void logInfo(String message) {
    LOGGER.log(Level.INFO, message);
}

From source file:neembuu.release1.settings.OnlineSettingImpl.java

public static String getRaw(String... p) {
    //Get the version.xml and read the version value.
    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");
    DefaultHttpClient httpclient = new DefaultHttpClient(params);
    String pth = "";
    for (String p_ele : p) {
        pth = pth + "/" + p_ele;
    }/*  w ww. j av  a  2  s .c om*/
    HttpGet httpget = new HttpGet("http://neembuu.sourceforge.net" + pth);
    LoggerUtil.L().log(Level.INFO, "Getting online setting ...{0}", p);
    try {
        HttpResponse response = httpclient.execute(httpget);
        String respxml = EntityUtils.toString(response.getEntity());
        return respxml;
    } catch (Exception ex) {
        LoggerUtil.L().log(Level.INFO, "Exception while getting resource " + p, ex);
    }

    return null;
}

From source file:com.github.jinahya.codec.BossVsEngineerTestNanoTimeDecode.java

@BeforeClass
private static void warmUp() throws IOException {
    LOGGER.info("warmUp()");

    final ByteArrayOutputStream baos = new ByteArrayOutputStream();

    final long freeMemory = Runtime.getRuntime().freeMemory();
    LOGGER.log(Level.INFO, "Runtime.freeMemory: {0}", freeMemory);

    for (int i = 0; i < 16; i++) {
        baos.reset();/* w  ww.  j a  va 2s.c om*/
        while (baos.size() < 1048576L) {
            baos.write(Tests.decodedBytes());
        }
        final byte[] decoded = baos.toByteArray();
        new HexEncoder().encodeLikeABoss(decoded);
        new HexEncoder().encodeLikeAnEngineer(decoded);
    }

    for (int i = 0; i < 16; i++) {
        baos.reset();
        while (baos.size() < 1048576L) {
            baos.write(Tests.encodedBytes());
        }
        final byte[] encoded = baos.toByteArray();
        new HexDecoder().decodeLikeABoss(encoded);
        new HexDecoder().decodeLikeAnEngineer(encoded);
    }

    for (int i = 0; i < 128; i++) {
        decodeLikeABoss(Tests.encodedBytes());
        decodeLikeAnEngineer(Tests.encodedBytes());
    }
}

From source file:com.github.jinahya.codec.BossVsEngineerTestNanoTimeEncode.java

@BeforeClass
private static void warmUp() throws IOException {
    LOGGER.info("warmUp()");

    final ByteArrayOutputStream baos = new ByteArrayOutputStream();

    final long freeMemory = Runtime.getRuntime().freeMemory();
    LOGGER.log(Level.INFO, "Runtime.freeMemory: {0}", freeMemory);

    for (int i = 0; i < 16; i++) {
        baos.reset();/*w w  w  . j a v  a  2  s. c o m*/
        while (baos.size() < 1048576L) {
            baos.write(Tests.decodedBytes());
        }
        final byte[] decoded = baos.toByteArray();
        new HexEncoder().encodeLikeABoss(decoded);
        new HexEncoder().encodeLikeAnEngineer(decoded);
    }

    for (int i = 0; i < 16; i++) {
        baos.reset();
        while (baos.size() < 1048576L) {
            baos.write(Tests.encodedBytes());
        }
        final byte[] encoded = baos.toByteArray();
        new HexDecoder().decodeLikeABoss(encoded);
        new HexDecoder().decodeLikeAnEngineer(encoded);
    }

    for (int i = 0; i < 128; i++) {
        encodeLikeABoss(Tests.decodedBytes());
        encodeLikeAnEngineer(Tests.decodedBytes());
    }
}

From source file:com.itcs.commons.email.impl.NoReplySystemMailSender.java

/**
 *
 * @param to/*from  w w  w  .  j a  v  a2s .c  om*/
 * @param subject
 * @param body
 * @param attachments
 * @throws EmailException
 */
public static void sendHTML(String to, String subject, String body, List<EmailAttachment> attachments)
        throws EmailException {
    try {
        getExecutorService().execute(
                new RunnableSendHTMLEmail(getSession(), new String[] { to }, subject, body, attachments));
    } catch (NamingException ex) {
        Logger.getLogger(NoReplySystemMailSender.class.getName()).log(Level.INFO,
                "el nombre jndi de la session de email esta mal configurado!!", ex);
    }
}

From source file:com.aalto.config.WebInitializer.java

@Override
public void onStartup(ServletContext servletContext) throws ServletException {
    Logger.getLogger("config").log(Level.INFO, "log: Webinitializer onStartup method!!");
    AnnotationConfigWebApplicationContext ctx = new AnnotationConfigWebApplicationContext();
    ctx.register(Config.class);
    ctx.setServletContext(servletContext);
    Dynamic servlet = servletContext.addServlet("dispatcher", new DispatcherServlet(ctx));
    servlet.addMapping("/");
    servlet.setLoadOnStartup(1);/*w  w w. j a  va  2s .  c o m*/
}

From source file:com.mmone.gpdati.allotment.reader.AllotmentFileReader.java

private void loadData() throws IOException {
    try {//w  ww  .  j  av a  2s .  c  o  m
        Logger.getLogger(AllotmentFileReader.class.getName()).log(Level.INFO,
                "**** target filename " + fileName);
        File file = new File(fileName);
        if (file.exists()) {
            Logger.getLogger(AllotmentFileReader.class.getName()).log(Level.INFO,
                    "**** file exist " + fileName);
            lines = FileUtils.readLines(file, "UTF-8");
        } else {
            Logger.getLogger(AllotmentFileReader.class.getName()).log(Level.INFO,
                    "**** file not found " + fileName);
            throw new IOException("File not found " + fileName);
        }
    } catch (Exception e) {
        throw new IOException(e.getMessage());
    }

}

From source file:me.footlights.core.crypto.Fingerprint.java

public static Option<Fingerprint> unapply(String s) {
    try {/*from  ww  w.  j a  v a  2s .c om*/
        return Option.apply(decode(new URI(s)));
    } catch (FormatException e) {
        log.log(Level.INFO, e.getLocalizedMessage() + ": " + s);
    } catch (NoSuchAlgorithmException e) {
        log.log(Level.WARNING, "No such algorithm", e);
    } catch (URISyntaxException e) {
        log.log(Level.INFO, "Bad fingerprint syntax: " + s);
    }

    return Option.apply(null);
}

From source file:edu.usu.sdl.openstorefront.service.manager.ReportManager.java

public static void init() {
    ServiceProxy serviceProxy = ServiceProxy.getProxy();
    //Restart any pending or working reports
    List<Report> allReports = getInprogessReports();

    if (!allReports.isEmpty()) {
        log.log(Level.INFO, MessageFormat.format(
                "Resuming pending and working reports. (Running in the Background)  Reports to run:  {0}",
                allReports.size()));/*from w  w  w.ja  v  a2 s  .  co  m*/
        for (Report report : allReports) {
            TaskRequest taskRequest = new TaskRequest();
            taskRequest.setAllowMultiple(true);
            taskRequest.setName(TaskRequest.TASKNAME_REPORT);
            taskRequest.setDetails("Report: " + report.getReportType() + " Report id: " + report.getReportId()
                    + " for user: " + SecurityUtil.getCurrentUserName());
            taskRequest.getTaskData().put(TaskRequest.DATAKEY_REPORT_ID, report.getReportId());
            serviceProxy.getAsyncProxy(serviceProxy.getReportService(), taskRequest).generateReport(report);
        }
    }

}

From source file:com.kahlon.guard.controller.example.SimpleBean.java

public void displayInfo() {
    Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Display Info works");
}