add simple log support