Added custom log writer

Change-Id: I62d6930ea6046a04996ce9278ae187598a98059e