Ported equivalent changes from logback branch.

- Should be the same as 7f9e280522379fc0f3ac09f4d81e8188cdb54192 only with log4j2 as the backing impl
Use custom distribution name