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.neophob.sematrix.core.osc.PixelControllerOscServer.java

/**
 * //  www.j  a v a 2 s. c  om
 * @param listeningPort
 * @throws OscServerException 
 */
public PixelControllerOscServer(int listeningPort) throws OscServerException {
    if (listeningPort < 1) {
        LOG.log(Level.INFO, "Configured Port {0}, OSC Server disabled", new Object[] { listeningPort });
        return;
    }

    LOG.log(Level.INFO, "Start OSC Server at port {0}", new Object[] { listeningPort });

    oscServer = OscServerFactory.createServer(this, listeningPort, BUFFER_SIZE);
}

From source file:by.bsuir.finance.service.user.UserInfoServiceImpl.java

@Override
public void delete(int idUserInfo) {
    UserInfo info = infoRepository.findByIdUserInfo(idUserInfo);
    log.log(Level.INFO, "info : {0}", info);
    Users user = info.getUsers();//from www.ja va 2 s  . c o  m
    //UserRoles role = roleRepository.findByUsername(user.getUsername());
    userRepository.delete(user);
}

From source file:com.raythos.sql.utils.UpdateExtUserDetailsWorker.java

void logInfo(String info) {
    Logger.getLogger(UpdateExtUserDetailsWorker.class.getName()).log(Level.INFO, info);
}

From source file:net.chrissearle.spring.twitter.spring.Twitter4jFollowService.java

@Override
public boolean isFriend(String twitterUserId) {
    if (logger.isLoggable(Level.INFO)) {
        logger.info(new StringBuilder().append("Checking isFriend: ").append(twitterUserId).toString());
    }//www  .j ava2  s . co m

    if (isActive()) {
        return checkForFriendship(twitterUserId);
    } else {
        if (logger.isLoggable(Level.INFO)) {
            logger.info("Twitter disabled");
        }

        return false;
    }
}

From source file:se.malmo.www.kontaktruta.service.ContactServiceImpl.java

@Override
@Cacheable(cacheName = "contacts", cacheNull = false, keyGenerator = @KeyGenerator(name = "StringCacheKeyGenerator", properties = {
        @Property(name = "includeMethod", value = "false"),
        @Property(name = "includeParameterTypes", value = "false")

}))//  www  .  j a  v  a 2 s  .  co m
public <T extends APISuggestion> T getContact(@PartialCacheKey String contactType, @PartialCacheKey String id,
        Class<T> classType) {
    T contact = null;
    try {
        contact = restTemplate.getForObject(
                String.format(BASEURL, contactType, id).replace("&app_token", "?app_token"), classType);
        Logger.getLogger(ContactServiceImpl.class.getName()).log(Level.INFO, new StringBuilder(" found: ")
                .append(contact.getName()).append(" for id:").append(id).toString());
    } catch (HttpClientErrorException ex) {
        Logger.getLogger(ContactServiceImpl.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
        return contact;
    }
    return contact;
}

From source file:at.ac.tuwien.swtm.analytics.mainspring.client.adapter.RetrievalResultAdapter.java

public void setNextTs(String nextTs) {
    try {/*w w w  .ja va  2s. c  o m*/
        this.nextTs = df.parse(nextTs);
    } catch (Exception ex) {
        this.nextTs = null;
        logger.log(Level.INFO, "Could not parse date, timestamp={0}{2}",
                new Object[] { nextTs, ex.toString() });
    }
}

From source file:onl.area51.httpd.service.HttpService.java

@PostConstruct
void start() {/* w w w  .  j av a2 s  . c om*/
    httpdConfig = configurationService.getConfiguration("httpd");

    port = httpdConfig.getInt("port", 8080);
    serverInfo = httpdConfig.getString("serverInfo", "Area51/1.1");

    LOG.log(Level.INFO, () -> "Creating http server " + serverInfo + " on port " + port);

    HttpServerBuilder serverBuilder = HttpServerBuilder.builder()
            // HTTP Server config
            .setSocketConfig(SocketConfig.custom().setSoTimeout(httpdConfig.getInt("socket.soTimeout", 15000))
                    .setTcpNoDelay(httpdConfig.getBoolean("socket.tcpNoDelay", true)).build())
            .setListenerPort(port).setServerInfo(serverInfo).setSslContext(null)
            .setExceptionLogger(ex -> LOG.log(Level.SEVERE, null, ex))
            .shutdown(httpdConfig.getLong("shutdown.time", 5L),
                    httpdConfig.getEnum("shutdown.unit", TimeUnit.class, TimeUnit.SECONDS));

    // Default global action is to serve resources
    Actions.registerClassResourceHandler(serverBuilder, HttpService.class);

    serverBuilder.notify(CDI.current().getBeanManager()::fireEvent);

    // Add global error handlers. As these are at the end, earlier ones take precedence
    Actions.registerErrorHandlers(serverBuilder);

    server = serverBuilder.build();

    LOG.log(Level.INFO, () -> "Starting http server " + serverInfo + " on port " + port);

    try {
        server.start();
    } catch (IOException ex) {
        throw new UncheckedIOException(ex);
    }

    LOG.log(Level.INFO, () -> "Started http server " + serverInfo + " on port " + port);
}

From source file:epgtools.epgdbbean.bean.Programme.ProgrammeGetterTest.java

/**
 * Test of getProgramme method, of class ProgrammeGetter.
 *///w ww .j  a  v  a 2 s . co m
@Test
public void testGetProgramme() {
    try {
        ProgrammeGetter gt = new ProgrammeGetter(this.Accesser.getCon());
        //???1???
        ProgrammeChannelNo_ReadOnly pr = this.chooseAppropriately(this.Accesser.getCon());
        log.log(Level.INFO, pr.toString());
        //ProgrammeGetter??????
        ProgrammeChannelNo_ReadOnly pc = gt.getProgramme(pr.getChannel_id(), pr.getChannel_no(),
                pr.getStart_datetime());
        log.log(Level.INFO, pc.toString());
        //????????
        assertEquals(pr, pc);
    } catch (SQLException ex) {
        Logger.getLogger(ProgrammeGetterTest.class.getName()).log(Level.SEVERE, null, ex);
    }
}

From source file:com.thejustdo.util.Utils.java

/**
 * Reads the content of a file and returns it in a big string object.
 *
 * @param filename Name and location to the plain file.
 * @return All the lines inside the file.
 *//*www . ja  v a2 s.  c  om*/
public static String getPlainTextFile(String filename) {
    log.log(Level.INFO, "Loading contents of file: {0}.", filename);
    try {
        StringBuilder answer = new StringBuilder();
        FileReader fr = new FileReader(filename);
        BufferedReader reader = new BufferedReader(fr);

        // while there are more lines.
        String line;
        while (reader.ready()) {
            line = reader.readLine();
            answer.append(line).append("\n");
        }

        // closing resources.
        reader.close();

        return answer.toString();
    } catch (IOException ex) {
        log.log(Level.SEVERE, null, ex);
        return null;
    }
}

From source file:edu.usf.cutr.HomeController.java

/**
 * Returns vehicle-positions in protocol buffer format
 *//*w  w w .  j a v  a  2 s .c  o  m*/
@RequestMapping(value = "/vehicle-positions.do", method = RequestMethod.GET)
public void vehiclePositions(HttpServletRequest request, HttpServletResponse response) {
    try {
        logger.log(Level.INFO, "loading vehicles");
        String path = UrlUtils.getResourcePath(request, URLConstants.VEHICLES_NAME);
        createStaticProtoBufFile(response, path);
    } catch (IOException e) {
        e.printStackTrace();
    }
}