Reworked logger from ground up.