Set logger before frameworks initialize

Ensures ActiveRecord, ActionController and ActionMailer loggers bind to
the new logger.