make sure the .logs dir exists

Signed-off-by: Bao Haojun <baohaojun@gmail.com>