Ticket #27233 - Store cached values on logging instance rather than globals() so they survive the switch from Desktop's framework to Engine's framework.