Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

logging design question

0 views
Skip to first unread message

Angus

unread,
Nov 29, 2009, 6:14:48 AM11/29/09
to
Hello

I am building a C++ wrapper for a C API. So for example there is a
Widget object which encapsulates a Widget (obviously not called that).

There can be all sorts of reasons why getting/working with the widget
fails and I am wondering about logging the errors.

Should I:

A) have no logging in these classes and simply return error codes?
B have no logging and just raise an exception?
C) specify a logging path in constructor for object and log to there?

Angus

0 new messages