Fix global reference
This commit is contained in:
parent
ce0f82c778
commit
6bb6c0e822
@ -270,10 +270,10 @@ Logging.Logger = Logger
|
|||||||
Logging.LogLevel = LogLevel
|
Logging.LogLevel = LogLevel
|
||||||
|
|
||||||
function Logging.getGlobalLogger()
|
function Logging.getGlobalLogger()
|
||||||
if _GLOBAL_LOGGER == nil then
|
if _G._GLOBAL_LOGGER == nil then
|
||||||
_GLOBAL_LOGGER = Logger:new{ level = LogLevel.DEBUG, output = print }
|
_G._GLOBAL_LOGGER = Logger:new{ level = LogLevel.DEBUG, output = print }
|
||||||
end
|
end
|
||||||
return _GLOBAL_LOGGER
|
return _G._GLOBAL_LOGGER
|
||||||
end
|
end
|
||||||
|
|
||||||
return Logging
|
return Logging
|
Loading…
x
Reference in New Issue
Block a user