log init parameters in config files
This commit is contained in:
@@ -4,3 +4,9 @@ SCADA_DEV_LISTEN = 16000
|
||||
SCADA_SV_LISTEN = 16100
|
||||
-- expected number of reactors
|
||||
NUM_REACTORS = 4
|
||||
-- log path
|
||||
LOG_PATH = "/log.txt"
|
||||
-- log mode
|
||||
-- 0 = APPEND (adds to existing file on start)
|
||||
-- 1 = NEW (replaces existing file on start)
|
||||
LOG_MODE = 0
|
||||
|
||||
@@ -25,7 +25,7 @@ local println = util.println
|
||||
local print_ts = util.print_ts
|
||||
local println_ts = util.println_ts
|
||||
|
||||
log.init("/log.txt", log.MODE.APPEND)
|
||||
log.init(config.LOG_PATH, config.LOG_MODE)
|
||||
|
||||
log._info("========================================")
|
||||
log._info("BOOTING supervisor.startup " .. SUPERVISOR_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user