Add USE=logging for net-libs/tox-9999

It's useful for debugging purposes. Disabled by default.
If enabled, creates libtoxcore.log in working directory.