Add debug feature to log to stdout

Start outlining a feature framework