/** * Creates a log context. * * @param context the name of the logging context (a common prefix). * * @return A log context. */ protected LogContext internalCreateContext(final String context) { synchronized (this) { LogContext ctx = (LogContext) this.logContexts.get(context); if (ctx == null) { ctx = new LogContext(context); this.logContexts.put(context, ctx); } return ctx; } }
/** * Creates a log context. * * @param context the name of the logging context (a common prefix). * * @return A log context. */ protected LogContext internalCreateContext(final String context) { synchronized (this) { LogContext ctx = (LogContext) this.logContexts.get(context); if (ctx == null) { ctx = new LogContext(context); this.logContexts.put(context, ctx); } return ctx; } }
/** * Creates a log context. * * @param context the name of the logging context (a common prefix). * * @return A log context. */ protected LogContext internalCreateContext(final String context) { synchronized (this) { LogContext ctx = (LogContext) this.logContexts.get(context); if (ctx == null) { ctx = new LogContext(context); this.logContexts.put(context, ctx); } return ctx; } }