You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by lo...@nitwit.de on 2003/10/29 13:58:29 UTC
ANN: eclipse log4j plugin
Hi everybody...
I wrote a small log4j plugin for eclipse, log4eclipse. It's actually still in
alpha stage (0.2.0) but already quite usable (hope so.. :).
It opens a server on a specified port (default 4445) and listens for
SocketAppender.
Get it from http://sf.net/projects/log4eclipse/
I look forward to comments and bug/wish reports :-)
--
Example:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="socket" class="org.apache.log4j.net.SocketAppender">
<param name="RemoteHost" value="localhost"/>
<param name="Port" value="4445"/>
</appender>
<root>
<priority value="ALL"/>
</root>
</log4j:configuration>
public static void main(String[] args)
{
final Logger log = Logger.getLogger(StressLog4j.class);
DOMConfigurator.configure("log4j-config.xml");
log.debug("blah");
log.info("blah");
log.warn("blah");
log.error("blah");
log.fatal("blah");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org