Package org.apache.log

Examples of org.apache.log.ContextMap.makeReadOnly()


        final ContextMap context = new ContextMap();
        context.set("UserName", userName);
        context.set("RemoteIP", remoteIP);
        context.set("SessionId", sessionId);
        context.set("time", getDateFormat().format(new Date()));
        context.makeReadOnly();

        //        bind new ContextMap to current thread and subthreads
        ContextMap.bind(context);
    }
}
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.