Implement a logger