drop global var for logging
Drop string formatting in logging
Let logging handle formatting only if needed