It’s not a “you can” question, the person writing the library either provides you with the functions to do a given thing or they don’t.
In current Haskell you need to augment the Logger and pass the modified value to all relevant functions.
With references the library would declare an implicit configuration reference and you’d augment that for all functions invoked within a context.