Improved logger design