sapfluxnet / sapfluxnetQC1

R package with functions related to sapfluxnet project
6 stars 0 forks source link

Implementing a log-rotate system #20

Closed MalditoBarbudo closed 8 years ago

MalditoBarbudo commented 8 years ago

Log file (/sapfluxnet/Logs/sapfluxnet.log) is in charge of recording every message, warning or error during the data ingestion, data quality checks and data flow. Log file size will increase over time. In order to avoid large file sizes, which can lead to slow performance of processes, we need to implement a log rotate system to archive log files above a size threshold in a compressed file (i.e. sapfluxnet.tar.gz). This will allow handy and efficient log file sizes.

MalditoBarbudo commented 8 years ago

Log rotation implemented with logrotate, a built-in linux app. Explanation and configuration instructions can be found in the Documentation folder of the project (/sapfluxnet/Documentation/logrotate_configuration.pdf)