Make sendToLogger a public method, reduce parameter passing.