Package com.betfair.cougar.logging.records

Examples of com.betfair.cougar.logging.records.TraceLogRecord


    /* (non-Javadoc)
      * @see com.betfair.cougar.logging.NewCougarLogger#trace(java.lang.String, java.lang.Object)
      */
    @Override
    public void forceTrace(String traceId, String msg, Object... args) {
        logEvent(new TraceLogRecord(traceId, msg, args));
    }
View Full Code Here


    }

    private void logEvent(LogRecord record) {
        // Add to the trace log if it's an explicit Trace log event or if this thread is currently tracing
        String traceId = CougarLoggingUtils.getTraceId();
        TraceLogRecord tlr = null;
        if (record instanceof TraceLogRecord) {
            tlr = (TraceLogRecord)record;
        } else if (traceId != null) {
            tlr = new TraceLogRecord(traceId, record.getMessage(), record.getThrown());
        }

        if (tlr != null) {
            CougarLogger traceLogger = CougarLoggingUtils.getTraceLogger();
            if (traceLogger != null) {
View Full Code Here

TOP

Related Classes of com.betfair.cougar.logging.records.TraceLogRecord

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.