made log module more perfect
added logevent