Closed scotte closed 10 years ago
Q: who is responsible for rotating (and compressing and keeping last N and deleting) old log files? If something like logrotate does this, does jHiccup keep logging to the specified file?
A: jHiccup [currently] makes no attempt to rotate files or compress them. This can probably be added as an option, although at ~20K lines per day (with the default 5 seconds reporting interval), it's not a big issue on most current systems.
Thanks @giltene . Right, so what happens if something else truncates or moves the log file? Does jHiccup.... hiccup? Does it keep writing to the moved file? Does it create a new file with the same old name? Does it stop writing to the truncated file? That's kind of what I'm wondering. I think it's important..... because sooner or later one will have to do something with that log file. :)
This would lower the barrier of entry in parsing the data with scripts (i.e. plotting the series in R would be trivial). I'll look at implementing this myself if I can get some time - if so, you can expect a pull request coming your way.