core/demo.js: log write updated