New `logdir` parameter added to class constructor.