added logging support for the stamp function, this shall now be the final

...l version