G
golden
Hello All,
I have program that tails a file using file::tail and also periodically
logs to a log file.
The name of the file that I tail changes frequently the format of which
is <file_yyyymmdd_pid.log>.
I would like to put a small "heartbeat message" to my log file. In
that file I wish to also include the current file name that is being
tailed.
I found that file::tail has an input method that simply displays the
logfile name. I have a function that determines the appropriate log
file. and use the "name_change" method to deal with that.
My question is can somebody help me determine how to write to my log
file periodically ( if the read is blocking waiting for data on the
file taile object.
Thanks in advance.
Ian
I have program that tails a file using file::tail and also periodically
logs to a log file.
The name of the file that I tail changes frequently the format of which
is <file_yyyymmdd_pid.log>.
I would like to put a small "heartbeat message" to my log file. In
that file I wish to also include the current file name that is being
tailed.
I found that file::tail has an input method that simply displays the
logfile name. I have a function that determines the appropriate log
file. and use the "name_change" method to deal with that.
My question is can somebody help me determine how to write to my log
file periodically ( if the read is blocking waiting for data on the
file taile object.
Thanks in advance.
Ian