use WelsLog instead of fprintf to have a unified trace output

    1. use WelsLog instead of fprintf to have a unified trace output
     2. use enum return values instead of the number.