logging design question

A

Angus

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top