Log class rewrited