Cut too long task result in log

 * Added function 'cut()' for cut data to specific length
 * Apply this function to WF_TRACE logging in result output.

Change-Id: Iffca824c8568897790e5a7054031b1a0292e0e45
Merge "Cut too long task result in log"