Adds logger interface support

It could be usefull to have some logging...