Added some basic logging to the sampler.
Copied sampler code into capture action, doh! reverted code back to capture action and updated sampler.py with basic logging function.