Add local logger and replace to use it