added support to view logs and to clean logs