added interface for log