Move configuration to file.

@njam Please review.
Make setting log inline (remove setLog method)