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:net.chrissearle.flickrvote.scheduler.WarnAdminJob.java

private void warnAdmin(final String warning, final String twitterAccount) {
    if (twitterAccount != null && !"".equals(twitterAccount)) {
        if (logger.isLoggable(Level.INFO)) {
            logger.info("DM send to " + twitterAccount + " message " + warning);
        }//from   w w w .j  a v a2  s.  co  m

        dmService.dm(twitterAccount, warning);
    }
}

From source file:com.tealcube.minecraft.bukkit.facecore.logging.PluginLogger.java

/**
 * Logs a message with a default {@link java.util.logging.Level} of {@link java.util.logging.Level#INFO}.
 *
 * @param message message to log//from  w  w w  . java 2s.com
 */
public void log(String message) {
    log(Level.INFO, message);
}

From source file:it.unibo.alchemist.utils.L.java

/**
 * @param s/*from   w w w  . j  a  v  a2  s .c  om*/
 *            the String to log
 */
@Deprecated
public static void log(final String s) {
    log(Level.INFO, s);
}

From source file:com.minhthuong.pfi.controller.PFIEditController.java

@RequestMapping
public String show(RenderRequest request, RenderResponse response) {
    log.log(Level.INFO, "show.edit.START");

    Element cssElement = response.createElement("link");
    cssElement.setAttribute("href",
            response.encodeURL("http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css"));

    Element jsElement = response.createElement("script");
    jsElement.setAttribute("src", response.encodeURL((request.getContextPath() + "/js/jquery.js")));
    response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, jsElement);

    jsElement = response.createElement("script");
    jsElement.setAttribute("src", response.encodeURL((request.getContextPath() + "/js/jquery.dataTables.js")));
    response.addProperty(MimeResponse.MARKUP_HEAD_ELEMENT, jsElement);

    return "edit";
}

From source file:de.bmw.yamaica.ea.core.internal.Franca2EACommandHandler.java

private void setOptionValues(CommandLine line) {
    if (line.hasOption(CLI_EA_PROJECT_PATH)) {
        eaProject = line.getOptionValue(CLI_EA_PROJECT_PATH);
    }/*from w  w w. j a v  a2 s  . c  o  m*/
    if (line.hasOption(CLI_EA_FRANCA_PATH)) {
        rootPackage = line.getOptionValue(CLI_EA_FRANCA_PATH);
    }
    if (line.hasOption(CLI_EA_ROOT_PACKAGE)) {
        francaPath = line.getOptionValue(CLI_EA_ROOT_PACKAGE);
        if (!FileHelper.isFilenameValid(francaPath)) {
            LOGGER.log(Level.INFO,
                    String.format("Specified %s [%s] is not valid", CLI_EA_ROOT_PACKAGE, francaPath));
            francaPath = null;
        }
    }

    if (line.hasOption(CLI_FRANCA_FILES)) {
        francaModels = line.getOptionValue(CLI_FRANCA_FILES);
    }

    if (line.hasOption(CLI_NO_VALIDATE)) {
        validateInput = false;
    }

    // Sets username and password.
    eaAuthenticationHandler.setOptionValues(line);
}

From source file:com.neophob.sematrix.core.glue.FileUtils.java

/**
 * /*from  w w  w .ja va 2s . c  o m*/
 * @param rootDirectory
 */
public FileUtils() {
    this.rootDirectory = System.getProperty("user.dir");

    if (!new File(getDataDir()).isDirectory()) {
        this.rootDirectory = System.getProperty("user.dir")
                + "/../pixelcontroller-distribution/src/main/resources";//
        LOG.log(Level.INFO, "Try root directory: {0}", rootDirectory);

        if (!new File(getDataDir()).isDirectory()) {
            LOG.log(Level.INFO, "Root directory {0} is not correct!", rootDirectory);
        }
    } else {
        LOG.log(Level.INFO, "Use root directory: {0}", rootDirectory);
    }

}

From source file:dhz.skz.citaci.weblogger.zerospan.WebloggerZeroSpanCitacBean.java

public void pokupiZeroSpanSaPostaje(IzvorPodataka izvor, Postaja p) {
    this.izvor = izvor;
    this.postaja = p;
    Date zadnji = getZadnjiZS(izvor, p);

    if (imaZS(izvor, p)) {

        try {/*from  ww w . ja  va2s.c  o  m*/
            Map<ProgramMjerenja, NizZeroSpanPodataka> tmp = getMapaZeroSpanNizova(p, izvor, zadnji);
            ftp.connect(new URI(izvor.getUri()));

            WlZeroSpanDatotekaParser citac = new WlZeroSpanDatotekaParser(timeZone);
            citac.setZadnjiPodatak(zadnji);
            citac.setNizKanala(tmp);

            WlZeroSpanFileFilter fns = new WlZeroSpanFileFilter(p.getNazivPostaje(), zadnji, timeZone);
            for (FTPFile file : ftp.getFileList(fns)) {
                log.log(Level.INFO, "Zero/span datoteka :{0}", file.getName());
                try (InputStream ifs = ftp.getFileStream(file)) {
                    citac.parse(ifs);
                } catch (Exception ex) { // kakva god da se iznimka dogodi, nastavljamo
                    log.log(Level.SEVERE, null, ex);
                } finally {
                    ftp.zavrsi();
                }
            }
            obradiISpremiNizove(tmp);
        } catch (FtpKlijentException | URISyntaxException ex) {
            log.log(Level.SEVERE, null, ex);
        } finally {
            ftp.disconnect();
        }
    }
}

From source file:org.newinstance.tnt.view.TaskBean.java

/**
 * Retrieves all tasks from the database.
 *
 * @return the list of tasks/*w  w  w .j  av a  2s.  com*/
 */
public List<Task> getTasks() {
    if (tasks == null) {
        LOG.log(Level.INFO, "Loading all tasks.");
        tasks = taskService.searchAllTask();
    }
    return tasks;
}

From source file:com.almende.pi5.common.agents.LoggerAgent.java

/**
 * Forward.//  w w  w.  jav a 2s .  c  o m
 *
 * @param ll
 *            the ll
 */
public void forward(@Name("logline") final LogLine ll) {
    final Params params = new Params();
    final ArrayList<LogLine> array = new ArrayList<LogLine>(1);
    array.add(ll);
    params.add("data", array);
    final JSONRequest request = new JSONRequest("addData", params);
    try {
        caller.call(graphs, request);
    } catch (IOException e) {
        LOG.log(Level.INFO, "Graphs agent not connected...");
    }
}

From source file:org.osiam.resources.provisioning.SCIMGroupProvisioningBean.java

@Override
public Group create(Group group) {
    GroupEntity enrichedGroup = GroupEntity.fromScim(group);
    enrichedGroup.setId(UUID.randomUUID());
    try {/*from   ww  w  . j  av a 2 s.c  o  m*/
        groupDAO.create(enrichedGroup);
    } catch (DataIntegrityViolationException e) {
        LOGGER.log(Level.INFO, "An exception got thrown while creating a group.", e);

        throw new ResourceExistsException(group.getDisplayName() + " already exists.", e);
    }
    return enrichedGroup.toScim(); //To change body of implemented methods use File | Settings | File Templates.
}