SLING-5263 - implement some junit test cases for LogSupport.java Applied patch submitted by Tien Nguyen, with some refactoring to reduce code duplication. This closes #111.