https://github.com/xbcsoft/coutlog