Fix logging spec

This PR:
- renames specs for `logging.rb` and `metrics.rb` to add the `_spec` suffix;
- fixes the logging specs that were broken by the moving of `ProductionFormatter`.