Allow management of logdir

Simple request to allow management of the logdir when installing and setting up postgres for the first time. 

I didn't find a way to do this when changing the log dir and on a initial install of postgres it will fail with this class since the log_directory isn't installed.

Sorry if there is easier way to do this.