Added logging functionalities to portable classes