Implement a logging system.