An optional logger can be configured.