Added support of log directory configuration.