mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
Added stuff from TNN2 Hoggit Core to lib
This commit is contained in:
9
lib/logging.lua
Normal file
9
lib/logging.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user