Logger function has been developped.