完善textlog函数

Signed-off-by: michaelzx <mail@zhangxiao.org>