Could you use a logger here instead? The abstraction is essential for playing well with the various clients.