mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 13:15:50 +00:00
21 lines
353 B
Lua
21 lines
353 B
Lua
local enabledByTest = false
|
|
|
|
local function isEnabled()
|
|
return _G.ROJO_LOG or enabledByTest
|
|
end
|
|
|
|
local Logging = {}
|
|
|
|
function Logging.info(template, ...)
|
|
if isEnabled() then
|
|
print("[Rojo] " .. template:format(...))
|
|
end
|
|
end
|
|
|
|
function Logging.warn(template, ...)
|
|
if isEnabled() then
|
|
warn("[Rojo] " .. template:format(...))
|
|
end
|
|
end
|
|
|
|
return Logging |