Log to file, controlled by ENV variable