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:
parent
ef56349efc
commit
b4567df7c1
7
mist.lua
7
mist.lua
@ -35,7 +35,7 @@ mist = {}
|
||||
-- don't change these
|
||||
mist.majorVersion = 4
|
||||
mist.minorVersion = 4
|
||||
mist.build = 76
|
||||
mist.build = 77
|
||||
|
||||
-- forward declaration of log shorthand
|
||||
local log
|
||||
@ -6703,11 +6703,10 @@ do -- mist.Logger scope
|
||||
-- @usage myLogger = mist.Logger:new("MyScript", "info")
|
||||
-- @treturn mist.Logger
|
||||
function mist.Logger:new(tag, level)
|
||||
local l = {}
|
||||
l.tag = tag
|
||||
local l = {tag = tag}
|
||||
setmetatable(l, self)
|
||||
self.__index = self
|
||||
self:setLevel(level)
|
||||
l:setLevel(level)
|
||||
return l
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user