Use a configuration file for logging

issue4040
review10441002