logger callback

ref https://github.com/j4mie/idiorm/issues/126