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.webpagebytes.plugins.WPBLocalFileStorage.java

public void initialize(Map<String, String> params) throws WPBIOException {
    try {/*from  w ww . j a v a 2s.com*/
        dataDirectory = params.get("dataDirectory");
        basePublicUrlPath = params.get("basePublicUrlPath");

        if (!basePublicUrlPath.endsWith("/")) {
            basePublicUrlPath = basePublicUrlPath + "/";
        }

        log.log(Level.INFO, "Initialize for WBLocalCloudFileStorage with dir: " + dataDirectory);

        initializeFileStorage(dataDirectory);
    } catch (Exception e) {
        log.log(Level.SEVERE, "Cannot initialize WBLocalCloudFileStorage for " + dataDirectory, e);
        throw new WPBIOException("Cannot initialize WBLocalCloudFileStorage", e);
    }
}

From source file:com.headwire.aem.tooling.intellij.communication.MessageManager.java

public void sendDebugNotification(String message, Object... params) {
    String aMessage = AEMBundle.messageOrKey(message, params);
    logger.trace(aMessage);//from   w  ww  . j a va2  s  .  c o m
    java.util.logging.Logger.getLogger(getClass().getName()).log(Level.INFO, aMessage);
    new DebugNotification("Debug Message", aMessage).notify(myProject);
}

From source file:com.plan.proyecto.servicios.gestionCuentas.GestionCuentasImplTest.java

/**
 * Test of ModificarCuenta method, of class GestionCuentasImpl.
 *//*from   ww w . ja  v  a2s. c  om*/
@Test
public void testModificarCuenta() {
    log.log(Level.INFO, "ModificarCuenta");
    log.log(Level.INFO, "Prueba de modificacin de una cuenta");
    log.log(Level.INFO, "Creo una cuenta");

    String password = "abcd";
    String email = "adddd@aaaaa.com";
    String nombre = "cesar";
    Date fecha = new Date();

    Cuenta cuenta = new Cuenta(email, password, nombre, fecha);

    gestionCuentas.AltaCuenta(cuenta);

    log.log(Level.INFO, "cuenta: " + cuenta.getApellidos());
    log.log(Level.INFO, "Modifico la cuenta");

    String apellido = "marin";
    cuenta.setApellidos(apellido);
    cuenta = gestionCuentas.ModificarCuenta(cuenta);
    assertNotNull(cuenta);
    assertTrue(cuenta.getApellidos().equals(apellido));

    log.log(Level.INFO, "Prueba de insercin de un segundo usuario repetido, terminada");
}

From source file:com.titankingdoms.dev.titanchat.core.channel.ChannelManager.java

public ChannelManager() {
    this.plugin = TitanChat.getInstance();

    if (getChannelDirectory().mkdirs())
        plugin.log(Level.INFO, "Creating channel directory...");

    if (getLoaderDirectory().mkdirs())
        plugin.log(Level.INFO, "Creating loader directory...");

    this.channels = new TreeMap<String, Channel>();
    this.labels = new HashMap<String, Channel>();
    this.loaders = new TreeMap<String, ChannelLoader>();
    this.statuses = new HashMap<Status, Map<String, Channel>>();
}

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

protected FileUtils(String rootDirectory) {
    this.rootDirectory = rootDirectory;
    LOG.log(Level.INFO, "Root directory: {0}", rootDirectory);
}

From source file:cz.incad.Kramerius.audio.AudioHttpRequestForwarder.java

public void forwardGetRequest(URL url) throws IOException, URISyntaxException {
    LOGGER.log(Level.INFO, "forwarding {0}", url);
    HttpGet proxyToRepositoryRequest = new HttpGet(url.toURI());
    forwardSelectedRequestHeaders(clientToProxyRequest, proxyToRepositoryRequest);
    //printRepositoryRequestHeaders(repositoryRequest);
    HttpResponse repositoryToProxyResponse = httpClient.execute(proxyToRepositoryRequest);
    //printRepositoryResponseHeaders(repositoryResponse);
    forwardSelectedResponseHeaders(repositoryToProxyResponse, proxyToClientResponse);
    forwardResponseCode(repositoryToProxyResponse, proxyToClientResponse);
    forwardData(repositoryToProxyResponse.getEntity().getContent(), proxyToClientResponse.getOutputStream());
}

From source file:dioscuri.TestCommandLineInterface.java

private CommandLineInterface parseCommandLineInterface(String... params) throws Exception {
    logger.log(Level.INFO, " [test] trying to parse: " + Arrays.toString(params));
    String[] allParams = new String[params.length + 2];
    allParams[0] = "-c";
    allParams[1] = "C:\\BK\\IntelliJ\\dioscuri_043_paths\\config\\DioscuriConfig.xml";
    System.arraycopy(params, 0, allParams, 2, params.length);
    return new CommandLineInterface(allParams);
}

From source file:com.jsmartframework.web.manager.TagEncrypter.java

static String encrypt(HttpServletRequest request, String value) {
    if (value != null) {
        try {/*from   w  ww .  j a v a2  s. c o m*/
            byte[] encode = getEncryptCipher(request).doFinal(value.getBytes("UTF8"));
            return new String(Base64.encodeBase64(encode, true, true)).trim();
        } catch (Exception ex) {
            LOGGER.log(Level.INFO, "Failed to encrypt tag [" + value + "]: " + ex.getMessage());
        }
    }
    return value;
}

From source file:bookkeepr.managers.SyncManager.java

private void delaySyncTask() {
    new Thread() {

        @Override/*from w  w w .  j a v a2s. co m*/
        public void run() {
            try {
                Thread.sleep(config.getSyncTime() * 1000);
            } catch (InterruptedException ex) {
                Logger.getLogger(SyncManager.class.getName()).log(Level.INFO,
                        "Sync manager prodded, forcing sync now.");
            }
            insertSyncTask();
        }
    }.start();
}