Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on logger

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

For this question from the exam mock,
Could any of you give me a light?
An exception caught in your servlet can be logged how?



A. log(message, throwable.getMessage())


B. log(message, throwable)


C. logger(message, throwable.getMessage())


D. logger(message, throwable)
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It's B.

Thanks
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zhixiong, please quote your sources when posting mock exam questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic