I know tickerplant will write tplog when it receives data. at the end of the day, ticker plant will start writing a new tplog. I see tp.q but cannot figure out which function does that. I know .u.tick start writing the tplog on disk but dont see which command make the tplog start writing new tplog next day? Can someone please point me out?
.u.ts runs on a timer, constantly checking for end of day. At end of day it calls .u.endofday, which calls .u.ld.
.u.ld checks for existence of a log file with the current date in its name, if this file does not exist, it creates it.
.u.ld is responsible for creating the new log file each day