TS/TJ: enableLog feature for QueryLogWriter