Basic logging functionality.