Using log_swtich last version.

Some updates to use log_switch last version and to fix RSpec deprecations.