Add some basic logging functions.