FabLabKasse.scripts package

Submodules

FabLabKasse.scripts.logWatchAndCleanup module

a cronjob for cleaning up and gzipping old logfiles

  • report errors and warnings in the newest logfiles (the current one, foo.log, and the archive files foo.log.2012-12-31 created after the last run of this script [i.e. the non-gzipped ones])
  • gzip old logfiles and remove too old ones

run this script by starting logWatchAndCleanup.sh which lives in the same directory

# it is recommended to run this script before midnight, because the logs wrap over at midnight and might change in the middle of running this script

FabLabKasse.scripts.logWatchAndCleanup.main()[source]

Module contents