There is a class A having a static variable static Logger log. In class A an object of class B is created and method of class B is called.

Class B = new Class B();
B.getConn(log);

now in class...