Support for debug and error logging in connection base