Configurable logger

Change-Id: I20d114017e6f05f2bc98a9375f61b4eac9ce0f93