• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling struts logging

 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eddy, Didnt try this..
Read this post
 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using log4j with eclipse and tomcat.
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic