path Script di configurazione per i path incluso nel bin path dell'applicazione Correzioni allo script di build (settaggio permessi) Bugfix sistema di logging Bugfix system controller Inclusione base per sistema di crontab e task Inserito sistema di gestione variabili globali
23 lines
786 B
PHP
23 lines
786 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 12/gen/2016
|
|
*/
|
|
|
|
require_once(dirname(__FILE__). "/../load.php");
|
|
|
|
try {
|
|
LoggingFacilityManager::getLogger("task")->log(LoggingFacility::$LEVEL_DEBUG,"Execution of task 'test' begins");
|
|
echo "OK";
|
|
LoggingFacilityManager::getLogger("task")->log(LoggingFacility::$LEVEL_DEBUG,"Execution of task 'test' completed");
|
|
}catch (CoreException $ex){
|
|
$msg = "Error while executing task '$task' with message '".$ex->getMessage()."'";
|
|
LoggingFacilityManager::getLogger("task")->log(LoggingFacility::$LEVEL_ERROR,$msg);
|
|
}
|
|
catch (Exception $ex){
|
|
$msg = "Unexpected error while executing task '$task' with message '".$ex->getMessage()."'";
|
|
LoggingFacilityManager::getLogger("task")->log(LoggingFacility::$LEVEL_ERROR,$msg);
|
|
}
|
|
|
|
?>
|