typo fix, and writelog demo