Here, we use a iostream like macro FCITX_INFO() to write every key we pressed to the log.
FCITX_INFO()