Home Forums Feature Requests SwithMail Feature Requests limit size of log file

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #593 Score: 0
      onlinestatements
      Participant
      1 pt

      limit the size of the log file either based on file size or by date of entries like only keep the last 30 days worth.
      I suppose I could write a small script that would limit the log file by line count which would count the total number of lines in the log file which i already have in my error detection script then i could do if “%linecount% GEQ “10000” some code that deletes the first 1000 or 5000 lines or whatever you want.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.