Simple logging facility

Basic logger with log levels, for investigating reload bug