• Post Reply Bookmark Topic Watch Topic
  • New Topic

logging solution

 
Sudershan Patri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can some place the code for logging example
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far? What has you stymied?

(P.S. You posted this twice -- I removed the duplicated.)
 
Soniya Ahuja
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you wish to log simple messages, you can use the logging function that comes with ServletContext. It doesn't allow a lot of customizations but is good for simple logging functionality. For a little more advanced options try java.util.logging.Logger class. You can find detailed description in the Java docs at
Logging 1.6

Here is a very simple example

For more advanced options, you can try frameworks like log4j
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!