List of usage examples for org.apache.commons.logging LogLevel equals
public boolean equals(Object obj)
From source file:com.joliciel.talismane.utils.DaoUtils.java
public static void LogParameters(Map<String, Object> paramMap, LogLevel logLevel) { if (logLevel.equals(LogLevel.TRACE)) { if (LOG.isTraceEnabled()) { for (Object obj : paramMap.entrySet()) { @SuppressWarnings("rawtypes") Entry entry = (Entry) obj; LOG.trace(entry.getKey() + ": " + (entry.getValue() == null ? "null" : entry.getValue().toString())); }/*from w w w .ja v a 2 s . c o m*/ } } else if (logLevel.equals(LogLevel.DEBUG)) { if (LOG.isDebugEnabled()) { for (Object obj : paramMap.entrySet()) { @SuppressWarnings("rawtypes") Entry entry = (Entry) obj; LOG.debug(entry.getKey() + ": " + (entry.getValue() == null ? "null" : entry.getValue().toString())); } } } else if (logLevel.equals(LogLevel.INFO)) { if (LOG.isInfoEnabled()) { for (Object obj : paramMap.entrySet()) { @SuppressWarnings("rawtypes") Entry entry = (Entry) obj; LOG.info(entry.getKey() + ": " + (entry.getValue() == null ? "null" : entry.getValue().toString())); } } } }