Add a logging function. Not yet used anywhere.