| Author |
Disabling struts logging
|
eddy johns
Ranch Hand
Joined: Feb 16, 2010
Posts: 67
|
|
Hi all,
How do I disable the struts2 logging? I'm using Eclipse and Tomcat. I read in previous threads that I can set the log4j to, for example, FATAL, but where do I do this?
Thanks,
Eddy
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
Eddy, Didnt try this..
Read this post
|
Have Fun with Java
little,little.. little by little makes a lot..
|
 |
eddy johns
Ranch Hand
Joined: Feb 16, 2010
Posts: 67
|
|
|
Thanks, Shankar. Looks like it should work. But where is the log4j.xml file? And where should I put it in Eclipse?
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
|
Which tool do you use for logging? If it is log4j then which server do you use? it would be in server configuration settings..
|
 |
eddy johns
Ranch Hand
Joined: Feb 16, 2010
Posts: 67
|
|
|
I am using log4j with eclipse and tomcat.
|
 |
Shankar Tanikella
Ranch Hand
Joined: Jan 30, 2011
Posts: 329
|
|
eddy, if you are using just tomcat server try setting it in logging.properties available in \conf of tomcat, if it doesnt work then try the log4j.properties..
Truly speaking, i did try the sample in that post, neither i use tomcat. Sorry mate By the time while some bartender comes in and give a thought try in both and verify once, it should be Ok, after all its just change in properties file and starting the server...
|
 |
 |
|
|
subject: Disabling struts logging
|
|
|