moved logger initialisation from static block to method