Wrap calls to @logger methods in a conditional that checks if the logger
responds to that method.

Issue #83