php.java.bridge
Class Log4jLogger
java.lang.Object
php.java.bridge.SimpleLog4jLogger
php.java.bridge.ChainsawLogger
php.java.bridge.Log4jLogger
- All Implemented Interfaces:
- ILogger
public class Log4jLogger
- extends ChainsawLogger
A logger which uses the log4j default appender or chainsaw, if no log4j.properties exists. Requires that log4j.jar is in the classpath.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Log4jLogger
public Log4jLogger()
configure
public void configure(java.lang.String defaultHost,
int defaultPort)
throws java.lang.Exception
- Description copied from class:
ChainsawLogger
- override this method, if you want to connect to a different
host or port
- Overrides:
configure
in class ChainsawLogger
- Parameters:
defaultHost
- The default hostdefaultPort
- The default port
- Throws:
java.lang.Exception
createChainsawLogger
public static ChainsawLogger createChainsawLogger()
throws java.lang.Exception
- Create a new chainsaw logger.
- Throws:
UnknownHostException
- If the host does not exist.
IOException
- If chainsaw isn't running.
java.lang.Exception
- See Also:
Util.setLogger(ILogger)
toString
public java.lang.String toString()
- Overrides:
toString
in class ChainsawLogger