fix to be able to assign logger from outside