rename and fix setlog bug