Package org.apache.provisionr.core.logging

Examples of org.apache.provisionr.core.logging.StreamLogger.info()


        ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);

        final StreamLogger logger = new StreamLogger(inputStream, LOG, MarkerFactory.getMarker("test")) {
            @Override
            protected void log(Logger logger, Marker marker, String line) {
                logger.info(marker, line)/* just for visual inspection */
                lines.add(line);
            }
        };
        logger.start();

View Full Code Here


                final List<String> lines = Lists.newCopyOnWriteArrayList();

                StreamLogger logger = new StreamLogger(command.getInputStream(), LOG, MarkerFactory.getMarker("live")) {
                    @Override
                    protected void log(Logger logger, Marker marker, String line) {
                        logger.info(marker, line)/* just for visual inspection */
                        lines.add(line);
                    }
                };
                logger.start();

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.