can we alos change the logdir to templogdir, because the real logdir is the first part of the logformat tuple