Assuming that you have log4j-1.2.8, if you look at the jar file there's a class
, when you run this as a java application it launches Chainsaw GUI.
Chainsaw uses SocketAppender and by default listens on 4445 port. Once you have launched the GUI, you need to have a config file which publishes log messages on the same port as chainsaw is listening on. This can be configured via a config file just as any other log4j configuration.
Here's a sample
and the code that invokes
for more info you can search log4j mailing lists here
Hope this helps,