/** * <p class="changed_added_4_0"> * This method produces logger instance for given category. * </p> * * @param category logger category * @return Logger */ public static Logger getLogger(String category) { if (isLog4JAvailable) { return new Log4jLogger(category); } return new JavaLogger(category); }
private static void handleException(Exception e) { // none of these exceptions should occure in real life. LOG.error("error while delegating resource handling to myfaces impl", e); }
public void debug(Throwable thrown) { log(Level.DEBUG, thrown); }
public boolean isDebugEnabled() { return isLogEnabled(Level.DEBUG); }
public Logger getLogger() { return LogFactory.getLogger(loggerName); }
public void info(Throwable thrown) { log(Level.INFO, thrown); }
public boolean isInfoEnabled() { return isLogEnabled(Level.INFO); }
public void warn(Enum<?> messageKey, Object... args) { log(Level.WARNING, messageKey, args); }
public boolean isWarnEnabled() { return isLogEnabled(Level.WARNING); }
public void warn(Throwable thrown) { log(Level.WARNING, thrown); }
public boolean isErrorEnabled() { return isLogEnabled(Level.ERROR); }
public void error(Throwable thrown) { log(Level.ERROR, thrown); }
public void debug(CharSequence content) { log(Level.DEBUG, content); }
public void debug(Throwable error, Enum<?> messageKey, Object... args) { log(Level.DEBUG, error, messageKey, args); }
public void info(Enum<?> messageKey, Object... args) { log(Level.INFO, messageKey, args); }
public void warn(CharSequence content, Throwable thrown) { log(Level.WARNING, content, thrown); }
public void debug(Enum<?> messageKey, Object... args) { log(Level.DEBUG, messageKey, args); }
public void info(CharSequence content) { log(Level.INFO, content); }
public void error(CharSequence content) { log(Level.ERROR, content); }
public void error(Enum<?> messageKey, Object... args) { log(Level.ERROR, messageKey, args); }