Location: PHPKode > scripts > Log checker > example.php
<?php
require_once('log_checker.class.php');


$lc = new log_checker();

$folders_to_scan = array("../retention",
			"../vehicledb",
			"../audithp",
			"../logs",
			"../abcdef");
						
$match_files = array(".log", ".txt");

//will save log to ../logs/logs_truncat.log, scan folders in array 
//$folders_to_scan, will search for files with extension log and txt and 
//shorten them to 25MB
$lc->init('../logs/logs_truncat.log', $folders_to_scan, $match_files, "25MB");
?>
Return current item: Log checker