Initial logging support.
Merge pull request #8 from Akon32/add_logging

Initial logging support.