Skip to content

Instantly share code, notes, and snippets.

@McBugFix
McBugFix / class.upLog.inc.php
Created August 5, 2011 03:48
A KISS style php logging class
<?php
/**
* A KISS style php logging class
* Automatically deletes log files after a period of time
*
* Usage:
* $log = new upLog('logs/');
* $log->deleteAfterDays = 7;
* $log->setFilename = 'error';