Add LogDir variable and add more debugloggroups