use an internal log subsystem instead of the preprocessor macro SHARDCACHE_DEBUG

this allows to turn on debugging messages without having to rebuild libshardcache
using the -DSHARDCACHE_DEBUG compiler option