mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-18 03:37:35 +00:00
16 lines
423 B
Lua
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 |