local y={}y.__index=y function y.new()local Y=setmetatable({},y)return Y end function y.log(W,y,Y)Y=Y or"\070\108\117\120"print(string.format("\091\037\115\093 \037\115",Y,y))end function y.error(Y,y)Y:log(y,"\069\082\082\079\082")end function y.warn(Y,y)Y:log(y,"\087\065\082\078")end return y
-- logger.lua
local Logger = {}
Logger.__index = Logger

function Logger.new()
    local self = setmetatable({}, Logger)
    return self
end

function Logger:log(message, level)
    level = level or "Flux"
    print(string.format("[%s] %s", level, message))
end

function Logger:error(message)
    self:log(message, "ERROR")
end

function Logger:warn(message)
    self:log(message, "WARN")
end

return Logger
