Open trungkien1991 opened 6 years ago
Hello @trungkien1991 ,
I am not really sure to understand your use case. Could you provide a minimal and reproducible case?
Thank you,
Hi @jerome-pouiller, I want to save logs of a application, but when I save the logs to file. I only save the logs in one day. I want to save the logs in a lot of day. The logs of before day are lost. Please help me
I'm using command "reredirect -m /tmp/logfile.txt PID" for redirect log of the application to logfile.txt. But I was checked the log file after short time. Some information of the log file is lost. Example: Log file before: [20180806 19:00] String in log file [20180806 19:01] String in log file [20180806 19:02] String in log file [20180806 19:03] String in log file New log file in the short time when I get from the log file: [20180806 19:01] String in log file [20180806 19:02] String in log file [20180806 19:03] String in log file [20180806 19:04] String in log file [20180806 19:05] String in log file =>The string "[20180806 19:00] String in log file" is lost after redirect in the short time. The log only store between 24h. If the log has two string the same time, reredirect will remove one string. Please help me to check the issue. Thank you