Making logdir configurable