Only switch logdevs if logging to file