hoggit/lib/logging.lua
2018-12-24 16:08:51 -06:00

10 lines
210 B
Lua

logFile = io.open(HOGGIT.log_base..[[\HOGGIT.log]], "w")
function log(str)
if str == nil then str = 'nil' end
if logFile then
logFile:write("HOGGIT --- " .. str .."\r\n")
logFile:flush()
end
end