Accept Logger other than IO as :output
Use #respond_to? to determine type of object