android : logger interface is more simply
thanks to AndreiLux