Logger: Don't clobber ostream format flags

This fixes incorrect formatting when using std::cout/std::cerr directly,
such as in arxsavetool.