Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging in Applet

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Is there any way to generate a log file on client machine running my applet. The log file can be a txt. Anyone can please help

Thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The various logging libraries (log4j, java.util.logging, Jakarta Commons Logging) can be used in applets just like in applications. If you want to store the log files on the local disk, the applet needs to be signed or you need to alter the local security policy. Both approaches are described here.
[ December 11, 2006: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic