camilwojcik/logs-cleanup

Simple package with class that clears logs older than given date (in text format). Recomended use in your Cron.php file.

dev-master 2022-07-26 02:27 UTC

This package is auto-updated.

Last update: 2024-05-26 06:28:51 UTC


README

Simple package with class that clears logs older than given date (in text format). Recomended use in your Cron.php file.

Task description:

Given:

  • We have an app that stores different types of informations in logs
  • These logs can be stored in a database or text file depending on our needs
  • For this task please focus on one implementation having in mind that other option is also viable

Task:

  • Make a small program that will be analysing logs and removing records older than given time period
  • We should be able to use this program as a composer dependency
  • Prepare a test that will demonstrate how your program works

Remarks:

  • This program does not have to be 100% finished or give us all concrete implementations
  • All tests should run and pass green