Rewritten logger