• Post Reply Bookmark Topic Watch Topic
  • New Topic

Package java.util.logging : How can i change the format of message  RSS feed

 
vijay saraf
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I am using jdk's logging api for logging.I just want to know is it posible to change the format of the message formatted by SimpleFormatter class?
see here the format

1>Nov 3, 2006 2:28:58 PM logger.ApplicationLogger writeInfo
2>INFO: This Page One Writing Info.

I want to know the format of first line the bold one.
Is there any one who knows the way (if posible so ) ?

Thanks,
Vijay Saraf.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't change the format of SimpleFormatter, but it is a simple exercise to implement your own Formatter class to replace SimpleFormatter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!