Check for ActiveSupport::BufferedLogger and use it if it is defined.

`ComfortableMexicanSofa` defines custom methods on this logger which fail with logentries. Hoping this will fix that. Alternatively we could make a change to CMS.

See comfy/comfortable-mexican-sofa#306.