ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
loganalyzer.php File Reference

Go to the source code of this file.

Functions

if(! $dryrun) foreach($results AS $slot=> $val) printHelp ()
 This function prints the help output. More...
 

Variables

 $baseDir = dirname(dirname(dirname(dirname(__FILE__))))
 
 $configdir = SimpleSAML\Utils\Config::getConfigDir()
 
 $progName = array_shift($argv)
 
 $debug = false
 
 $dryrun = false
 
foreach($argv as $a) $aggregator = new sspmod_statistics_Aggregator(true)
 
 $results = $aggregator->aggregate($debug)
 

Function Documentation

◆ printHelp()

if (! $dryrun) foreach ( $results AS $slot=> $val) printHelp ( )

This function prints the help output.

Definition at line 75 of file loganalyzer.php.

References $progName, file, and files.

75  {
76  global $progName;
77 
78  echo <<<END
79 Usage: $progName [options]
80 
81 This program parses and aggregates SimpleSAMLphp log files.
82 
83 Options:
84  -d, --debug Used when configuring the log file syntax. See doc.
85  --dry-run Aggregate but do not store the results.
86 END;
87 
88 }
$progName
Definition: loganalyzer.php:15
Reload workbook from saved file
Done writing files
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.

Variable Documentation

◆ $aggregator

foreach ( $argv as $a) $aggregator = new sspmod_statistics_Aggregator(true)

Definition at line 53 of file loganalyzer.php.

Referenced by statistics_hook_cron().

◆ $baseDir

$baseDir = dirname(dirname(dirname(dirname(__FILE__))))

Definition at line 5 of file loganalyzer.php.

◆ $configdir

$configdir = SimpleSAML\Utils\Config::getConfigDir()

Definition at line 11 of file loganalyzer.php.

◆ $debug

◆ $dryrun

$dryrun = false

Definition at line 17 of file loganalyzer.php.

◆ $progName

$progName = array_shift($argv)

Definition at line 15 of file loganalyzer.php.

Referenced by printHelp().

◆ $results

$results = $aggregator->aggregate($debug)

Definition at line 56 of file loganalyzer.php.