Introduced logger fn instead of 'dbg' macro