added optional logging to the console

Signed-off-by: Pascal Pflaum <pascal.pflaum@cisha.de>