aspose file tools
The moose likes Struts and the fly likes problem in configure Log4j with chainsaw Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "problem in configure Log4j with chainsaw" Watch "problem in configure Log4j with chainsaw" New topic
Author

problem in configure Log4j with chainsaw

mohammed abu
Greenhorn

Joined: Nov 13, 2006
Posts: 9
Hello Friends,

I am new Log4j. I have done configuration for Log4j in log4j.properties. This is working fine. But I don�t know how to configure Log4j with chainsaw.
Following configuration has done for Log4j in log4j.properties.



[I][/I]

My question is
How to configure the Log4j with chainsaw?
Is there any .jar file I need to add for this configuration?
How to run chainsaw?

So could some one help me to solve my problem?

Regards,
sidiq
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
mohammed abu
Greenhorn

Joined: Nov 13, 2006
Posts: 9
Hello Chris Boldon,

Thanks for your reply. I have added the code that you have sent in log4j.properties file. Now my question is how to view the chainsaw�s log information? Many of forums that suggested and asked to run following command in CMD

java -Dchainsaw.port=4445 com.puppycrawl.tools.chainsaw.Main.

After run that command I get CHAINSAW �Log4jLogViewer GUI screen.

Here after what I need to do? Is there any log file I need to give as input? I am getting clear document about chainsaw.
So please help me solve this problem.

Regards,
Sidiq


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
I seem to remember (not quite sure) that you need to start up the Chainsaw GUI before starting the process that sends the logging data. Otherwise the logger will try to connect to Chainsaw, fail at it, and never try again (i.e., you won't see anay info in the GUI).


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem in configure Log4j with chainsaw
 
Similar Threads
thread safe logging in a servlet
Log4J - File appender in 2 or more files for the same package.
problem in configure Log4j with chainsaw
Log4j output files
log4j:ERROR Attempted to append to closed appender named [null].