Loading configuration and setting loggging in the shepherd constructor