Normalize the use of the logger (as in the whole code)