protected LogContext getOrCreate ( final String loggingProfile ) { LogContext result = profileContexts . get ( loggingProfile ) ; if ( result == null ) { result = LogContext . create ( ) ; final LogContext current = profileContexts . putIfAbsent ( loggingProfile , result ) ; if ( current != null ) { result = current ; } } return result ; }
Get or create the log context based on the logging profile .