various: added a logging facility.