Fixes #126 by adding log API and transforming Options and Attributes to CLI format