Implement basic logging module.