• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[VERY URGENT]Logging in Struts

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
Can anyone please tell me that how can I generate locale-specific messages using commons-logging API in struts. Please help me. It's very urgent.
Thanks
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you want to make locale-specific? the language, the dates, the times? If you want to use different languages, you'll need to use the utils.MessageResources class and put your logging strings in property files.
Just a caveat - it might make difficulties when you get an error on the property files - you won't be able to log anything.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic