Setup logger before any other state/ops
Merge pull request #5 from anchor/fix_logging

Setup logger before any other state/ops