mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Logger fix
fixed issue with logging level being set for all loggers and not just the logger it was logging logs for.
This commit is contained in:
7
mist.lua
7
mist.lua
@@ -35,7 +35,7 @@ mist = {}
|
|||||||
-- don't change these
|
-- don't change these
|
||||||
mist.majorVersion = 4
|
mist.majorVersion = 4
|
||||||
mist.minorVersion = 4
|
mist.minorVersion = 4
|
||||||
mist.build = 76
|
mist.build = 77
|
||||||
|
|
||||||
-- forward declaration of log shorthand
|
-- forward declaration of log shorthand
|
||||||
local log
|
local log
|
||||||
@@ -6703,11 +6703,10 @@ do -- mist.Logger scope
|
|||||||
-- @usage myLogger = mist.Logger:new("MyScript", "info")
|
-- @usage myLogger = mist.Logger:new("MyScript", "info")
|
||||||
-- @treturn mist.Logger
|
-- @treturn mist.Logger
|
||||||
function mist.Logger:new(tag, level)
|
function mist.Logger:new(tag, level)
|
||||||
local l = {}
|
local l = {tag = tag}
|
||||||
l.tag = tag
|
|
||||||
setmetatable(l, self)
|
setmetatable(l, self)
|
||||||
self.__index = self
|
self.__index = self
|
||||||
self:setLevel(level)
|
l:setLevel(level)
|
||||||
return l
|
return l
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user