Move configuration to file.

@njam Please review.
Merge log.dir and log.name