Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to avoid non project logs

 
palakolanusrinu Reddy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I need urgent help from any one of you..

actual problem is:
when ever we process the request by using struts frame work complete information is printing in logs but in logs its printing project specific info as well as struts related info also

now i want to avoid that struts related info
can any one help in this its very urgent.

thanks in advance

regards
Srinu
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Log4j for logging? If yes, then have a look at their manual which explains how to configure appenders for a logger. Alternately, if you want to disable struts logging altogether, then you can set it OFF as follows:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic