The Artima Developer Community
Sponsored Link

Design Forum
Logging in API's

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Gregory

Posts: 1
Nickname: gvdenbro
Registered: Apr, 2003

Logging in API's Posted: Mar 23, 2004 3:37 AM
Reply to this message Reply
Advertisement
At work we got a pretty heavy discussion about whether or not we should log the stuff happening in the API we're designing. I personnaly don't see the point in putting log-statements in our API. The exceptions mechanisms, profilers, etc. are enough for monitorring what is happening in our API. Secondly, I don't think our clients should know exactly what is happening when using our API ("information hiding"), they should only know what happened behind the scenes when exceptions are throwed.
So what do you think about using logging in API's, useful or just overhead, what are the pros/cons? Shouldn't the applications using the API log what is happening?

Topic: Article on Precise Uses Cases Previous Topic   Next Topic Topic: Connection Pooling Error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use