Package net.jcores.jre.interfaces.internal.logging

Examples of net.jcores.jre.interfaces.internal.logging.LoggingHandler


public class ManagerLogging extends Manager {
    /** The current logging handler */
    private volatile LoggingHandler handler;
   
    public ManagerLogging() {
        handler(new LoggingHandler() {
            /** Common logger */
            private final Logger logger = Logger.getLogger(CommonCore.class.getName());

            @Override
            public void log(String log, Level level) {
View Full Code Here


   
    /** */
    @Test
    public void testLog() {
        final AtomicReference<String> result = new AtomicReference<String>();
        final LoggingHandler oldhandler = $.manager(ManagerLogging.class).handler();
        final LoggingHandler newHandler = new LoggingHandler() {
            @Override
            public void log(String log, Level level) {
                result.set(log);
            }
        };
View Full Code Here

TOP

Related Classes of net.jcores.jre.interfaces.internal.logging.LoggingHandler

Copyright © 2018 www.massapicom. 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.