[utils] add log level setting function
Merge branch 'pull' of git://github.com/yuyichao/fcitx