It's not a secret anymore!*
The moose likes Struts and the fly likes Disabling struts logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Disabling struts logging " Watch "Disabling struts logging " New topic
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Disabling struts logging
 
Similar Threads
java.lang.OutOfMemoryError Exception in thread "main"
Setting up logging
Logging
Is logging needed much in the front end?
Is there another option for Spring AOP Annotations?