mirror of
https://github.com/gmod-integration/lua.git
synced 2025-04-30 03:15:25 +00:00
16 lines
443 B
Lua
16 lines
443 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)
|
|
if (debug) then print(debug.traceback()) end
|
|
end |