Package org.auraframework.system

Examples of org.auraframework.system.LoggingContext$KeyValueLogger


    private static ThreadLocal<LoggingContext> currentContext = new ThreadLocal<LoggingContext>();

    @Override
    public LoggingContext establish() {
        LoggingContext lc = new LoggingContextImpl();
        currentContext.set(lc);
        return lc;
    }
View Full Code Here


        AuraImpl.getLoggingAdapter().release();
    }

    @Override
    public void startTimer(String name) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.startTimer(name);
        }
    }
View Full Code Here

        }
    }

    @Override
    public void startAction(String actionName) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.startAction(actionName);
        }
    }
View Full Code Here

        }
    }
   
    @Override
    public void stopAction(String actionName) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.stopAction(actionName);
        }
    }
View Full Code Here

        }
    }
   
    @Override
    public void stopTimer(String name) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.stopTimer(name);
        }
    }
View Full Code Here

        }
    }

    @Override
    public long getTime(String name) {
        LoggingContext lc = getLoggingContext();
        if (lc == null) {
            return -1L;
        }
        return lc.getTime(name);
    }
View Full Code Here

        return lc.getTime(name);
    }

    @Override
    public void resetTimer(String name) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.resetTimer(name);
        }
    }
View Full Code Here

        }
    }

    @Override
    public long getNum(String key) {
        LoggingContext lc = getLoggingContext();
        if (lc == null) {
            return -1L;
        }
        return lc.getNum(key);
    }
View Full Code Here

        return lc.getNum(key);
    }

    @Override
    public void incrementNum(String key) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.incrementNum(key);
        }
    }
View Full Code Here

    @Override
    public void incrementNumBy(String key, Long num) {
        if (num == null) {
            return;
        }
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.incrementNumBy(key, num);
        }
    }
View Full Code Here

TOP

Related Classes of org.auraframework.system.LoggingContext$KeyValueLogger

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.