Configurable log formatter

Change-Id: I599261063a5cb6dff1e4a83bf5cb04c5ef7cedc2