added prepend for log lines, added stats logging as part of digestsub