• 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!