Exception handling and logging in new binding

Hi All,

I’m about to write a new binding under 1.8.3 (later 2.x, too). The binding uses network, and I want to develop proper exception handling and logging. Is there any article about the exception handling and logging in bindings? Now a 1.x description is important, later also a 2.x.

Thank you in advance.
Best regards: Balazs