#!/usr/bin/php 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); } ?>