Add logger object to script.
Example to solve issue #89