1 17 package org.apache.avalon.cornerstone.blocks.connection; 18 19 import org.apache.avalon.framework.logger.AbstractLogEnabled; 20 21 import java.io.IOException ; 22 23 27 public class AvalonLoggerConnectionMonitor extends AbstractLogEnabled implements ConnectionMonitor { 28 29 public void acceptingConnectionException(Class clazz, String message, IOException ioe) { 30 getLogger().error(message, ioe); 31 } 32 33 public void unexpectedException(Class clazz, String message, Exception e) { 34 getLogger().error(message, e); 35 36 } 37 38 public void shutdownSocketWarning(Class clazz, String message, IOException ioe) { 39 getLogger().warn(message, ioe); 40 } 41 42 public void debugMessage(Class clazz, String message) { 43 getLogger().debug(message); 44 } 45 46 public boolean isDebugEnabled(Class clazz) { 47 return getLogger().isDebugEnabled(); 48 } 49 } 50 | Popular Tags |