Simple logging facility. To be ctd