May 26, 2018
Load Log::Any only if LOG environment variable is true
LogAnyIfLOG will load LogAny only when LOG environment variable is true. Otherwise, the module is not loaded and if user imports $log, a dumb object will be returned instead that will accept any method but return false.
This is a quick-hack solution to avoid the cost of loading LogAny under “normal condition” when LOG is not set to true.