logger utility updated. TODO: replace 'console' logs by 'logger' logs.