diff --git a/logging.lua b/logging.lua index 037adb6..d685582 100644 --- a/logging.lua +++ b/logging.lua @@ -270,10 +270,10 @@ Logging.Logger = Logger Logging.LogLevel = LogLevel function Logging.getGlobalLogger() - if _GLOBAL_LOGGER == nil then - _GLOBAL_LOGGER = Logger:new{ level = LogLevel.DEBUG, output = print } + if _G._GLOBAL_LOGGER == nil then + _G._GLOBAL_LOGGER = Logger:new{ level = LogLevel.DEBUG, output = print } end - return _GLOBAL_LOGGER + return _G._GLOBAL_LOGGER end return Logging \ No newline at end of file