add close and null format in logger
0.2.4