honor LOSF_LOG_MODE environment variable