add debug and error logs in ClPlatform lib