System.out.println("Name=" + name); System.out.println("  level=" + level); System.out.println("  message=" + message); System.out.println("  exception=" + ex);
if (LOG.isDebugEnabled()) { LOG.trace("Name=" + name); LOG.trace("  level=" + level); LOG.trace("  message=" + message); LOG.trace("  exception=" + ex); }
    public void logException(FacesContext facesContext, UIViewRoot viewRoot,            String name, long date, String message, int level, Throwable ex) {        if (name != null) {            try {                Log log = LogFactory.getLog(LogService.PREFIX_LOGGER_NAME                        + name);                if (log != null) {                    switch (level) {                    case 0:                        log.fatal(message, ex);                        return;                    case 3:                        log.error(message, ex);                        return;                    case 4:                        log.warn(message, ex);                        return;                    case 6:                        log.info(message, ex);                        return;                    case 7:                        log.debug(message, ex);                        return;                    }                }            } catch (LogConfigurationException logException) {                LogService.LOG.error("Can not log '" + name + "'.",                        logException);            }        }        System.out.println("Name=" + name);        System.out.println("  level=" + level);        System.out.println("  message=" + message);        System.out.println("  exception=" + ex);    }