Extract WritableLogger from log module

Change-Id: I348c0428e63abcc1a08642c384d69507746a95ef