log: added simple logging facility