Improve the logger pattern for static call