Rewrote logger