@Override public Log getLogger() { if (LOGGER == null) { LOGGER = LogFactory.getLog(DeltaSessionManager.class); } return LOGGER; }
public static void initLogConfig(@SuppressWarnings("rawtypes") final Class<? extends TestUtils> clazz) { final URL loggingProperties = clazz.getResource("/logging.properties"); try { System.setProperty("java.util.logging.config.file", new File(loggingProperties.toURI()).getAbsolutePath()); } catch (final Exception e) { // we don't have a plain file (e.g. the case for msm-kryo-serializer etc), so we can skip reading the config return; } try { LogManager.getLogManager().readConfiguration(); } catch (final Exception e) { LogFactory.getLog( TestUtils.class ).error("Could not init logging configuration.", e); } }
private Log getLog() { if (log == null) { synchronized (this) { if (log == null) { log = LogFactory.getLog(LazyReplicatedMap.class); } } } return log; } }
private Log getLog() { if (log == null) { synchronized (this) { if (log == null) { log = LogFactory.getLog(ReplicatedMap.class); } } } return log; } }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { ois.defaultReadObject(); log = LogFactory.getLog(RemoteIpFilter.class); } }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { ois.defaultReadObject(); log = LogFactory.getLog(RemoteIpFilter.class); } }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { ois.defaultReadObject(); log = LogFactory.getLog(ApplicationFilterConfig.class); }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return logger; logger = LogFactory.getLog(getLogName()); return logger; }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return (logger); logger = LogFactory.getLog(logName()); return (logger); }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return logger; logger = LogFactory.getLog(getLogName()); return logger; }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return (logger); logger = LogFactory.getLog(logName()); return (logger); }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return (logger); logger = LogFactory.getLog(logName()); return (logger); }
/** * Return the Logger for this Container. */ @Override public Log getLogger() { if (logger != null) return (logger); logger = LogFactory.getLog(logName()); return (logger); }
private static String locationFor(String name) { URL location = CLASS_SERVLET_CONTEXT.getResource("resources/" + name); if (location == null && CLASS_JSP_CONTEXT != null) { location = CLASS_JSP_CONTEXT.getResource("resources/" + name); } if (location == null) { Log log = LogFactory.getLog(DigesterFactory.class); log.warn(sm.getString("digesterFactory.missingSchema", name)); return null; } return location.toExternalForm(); }
private static String locationFor(String name) { URL location = CLASS_SERVLET_CONTEXT.getResource("resources/" + name); if (location == null && CLASS_JSP_CONTEXT != null) { location = CLASS_JSP_CONTEXT.getResource("resources/" + name); } if (location == null) { Log log = LogFactory.getLog(DigesterFactory.class); log.warn(sm.getString("digesterFactory.missingSchema", name)); return null; } return location.toExternalForm(); }
public void setConfiguration(String configuration) throws Exception { if (containerLog == null) { containerLog = LogFactory.getLog(getContainer().getLogName() + ".rewrite"); } maps.clear(); parse(new BufferedReader(new StringReader(configuration))); }
public void setConfiguration(String configuration) throws Exception { if (containerLog == null) { containerLog = LogFactory.getLog(getContainer().getLogName() + ".rewrite"); } maps.clear(); parse(new BufferedReader(new StringReader(configuration))); }
@Override public void warning(SAXParseException ex) throws SAXException { Log log = LogFactory.getLog(MyErrorHandler.class); if (log.isDebugEnabled()) log.debug("ParserUtils: warning ", ex); // We ignore warnings }
@Override public void warning(SAXParseException ex) throws SAXException { Log log = LogFactory.getLog(MyErrorHandler.class); if (log.isDebugEnabled()) log.debug("ParserUtils: warning ", ex); // We ignore warnings }
@Override protected void initInternal() throws LifecycleException { super.initInternal(); containerLog = LogFactory.getLog(getContainer().getLogName() + ".rewrite"); }