Array to hash refactor

- Changes the logger error method to accept arguments as a hash rather than an array of keys and values.