add back a function people tend to use in the logging code (#54597)
Apparently, people use this function so let's put it back to reduce
unnecessary breakage. This was moved in
https://github.com/JuliaLang/julia/pull/54428.
Co-authored-by: KristofferC <kristoffer.carlsson@juliacomputing.com>