hoggit/lib/logging.lua
2018-12-24 15:25:13 -06:00

10 lines
213 B
Lua

logFile = io.open(lfs.writedir()..[[Logs\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