Added logging to BaseEntity initialization