log init function to set path and write mode

This commit is contained in:
Mikayla Fischler
2022-04-29 13:32:37 -04:00
parent 3587352219
commit c805b6e0c5
5 changed files with 46 additions and 14 deletions

View File

@@ -12,13 +12,15 @@ os.loadAPI("config.lua")
os.loadAPI("plc.lua")
os.loadAPI("threads.lua")
local R_PLC_VERSION = "alpha-v0.4.10"
local R_PLC_VERSION = "alpha-v0.4.11"
local print = util.print
local println = util.println
local print_ts = util.print_ts
local println_ts = util.println_ts
log.init("/log.txt", log.MODE.APPEND)
log._info("========================================")
log._info("BOOTING reactor-plc.startup " .. R_PLC_VERSION)
log._info("========================================")