Flexible way for logging configuration

Change-Id: I7227bd474e4586689f6bd1fce7ead491b0715f9e