improved logger interface