Announcement Announcement Module
Collapse
No announcement yet.
logging for RequestUtils.getRequiredStringParameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • logging for RequestUtils.getRequiredStringParameter

    I'm using RequestUtils.getRequiredStringParameter and when it throws a ServletRequestBindingException there is nothing about it in my log4j logs. Could someone suggest a way of logging this to the log? I have log4j to log at the DEBUG level.


    thanks in advance,
    Mike

  • #2
    put RequestUtils.getRequiredStringParameter in a try block and catch ServletRequestBindingException. In the catch block add the log message.

    Comment


    • #3
      Now that was just down right silly of me.

      thanks!

      Comment

      Working...
      X