Add a logging facility for debugging