Expose logger in api Fix #86