lua/lua/gmod_integration/shared/sh_main.lua
2023-09-25 11:27:57 +02:00

16 lines
423 B
Lua

//
// Functions
//
// Log
function gmInte.log(msg, debug)
if (debug && !gmInte.config.debug) then return end
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] " .. msg)
end
// Log Error
function gmInte.logError(msg, debug)
if (debug && !gmInte.config.debug) then return end
print("[" .. os.date("%Y-%m-%d %H:%M:%S") .. "] [Gmod Integration] [ERROR] " .. msg)
print(debug.traceback())
end