[core] changing access to the logger method