File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Increase Log level in Servlet

 
Sachidananda Pattnaik
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am working on an application where Java Servlets are deployed in iplanet web server. Whenever the call hits the server it prints the log messages in the console as written inside the log method in the Servlet classes. The task is to increase the log level which can have a details description of the message.

Please suggest me the approach to do this. Please note I am not allowed to use any kind of logging mechanism like log4J etc..
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rewite the logging code?

 
Ashok Mor
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can format or change the log level, to do so you need change into file ‘logging.properties’, this file would be available inside lib folder of your jre.
i.e. C:\Program Files\Java\jre6\lib
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sachidananda Pattnaik wrote:Please note I am not allowed to use any kind of logging mechanism like log4J etc..

Why not? Are you expected to brush your teeth without a toothbrush as well?
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
log4j is tons better than the native Java logging system. Its open source, works with ancient JVMs. Its a lot easier to use, and easier to configure.

You should switch to using it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic