add basic log support