5$baseDir = dirname(dirname(dirname(dirname(__FILE__))));
8require_once(
$baseDir .
'/lib/_autoload.php');
20foreach (
$argv as $a) {
21 if (strlen($a) === 0) {
24 if (strpos($a,
'=') !==
false) {
26 $v = substr($a, $p + 1);
27 $a = substr($a, 0, $p);
33 $shortOptMap = array(
'-d' =>
'--debug');
34 if (array_key_exists($a, $shortOptMap)) {
35 $a = $shortOptMap[$a];
55 echo(
'Unknown option: ' . $a .
"\n");
56 echo(
'Please run `' .
$progName .
' --help` for usage information.' .
"\n");
65echo
"Cleaning these trackIDs: " . join(
', ',
$todelete) .
"\n";
81This program cleans logs. This script is experimental. Do not run it unless you have talked to Andreas about it.
82The script deletes log lines related to sessions that produce more than 200 lines.
85 -d, --debug Used when configuring the log file syntax. See doc.
86 --dry-run Aggregate but
do not store the results.
88 --outfile File to output the results.
An exception for terminatinating execution or to throw for unit testing.
static setConfigDir($path, $configSet='simplesaml')
Set the directory for configuration files for the given configuration set.
foreach($argv as $a) $cleaner
if(! $dryrun) printHelp()
This function prints the help output.