Importate librerie fondamentali: Logger (UNTESTED) System (UNTESTED) Dao (INCOMPLETE)
53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 22/dic/2015
|
|
*/
|
|
|
|
require_once(dirname(__FILE__)."/LoggingFacility.php");
|
|
require_once(dirname(__FILE__)."/LoggingFacilityManager.php");
|
|
require_once(dirname(__FILE__)."/SyslogLogger.php");
|
|
require_once(dirname(__FILE__)."/FileLogger.php");
|
|
|
|
|
|
// _
|
|
// | | ___ __ _ __ _ ___ _ __ ___
|
|
// | | / _ \ / _` |/ _` |/ _ \ '__/ __|
|
|
// | |__| (_) | (_| | (_| | __/ | \__ \
|
|
// |_____\___/ \__, |\__, |\___|_| |___/
|
|
// |___/ |___/
|
|
//
|
|
LoggingFacilityManager::addLogger(
|
|
"system",
|
|
new SyslogLogger("Core",$systemCatalogManager,true)
|
|
);
|
|
LoggingFacilityManager::getLogger("system")->setLoggingLevel(LoggingFacility::$LEVEL_DEBUG);
|
|
|
|
|
|
LoggingFacilityManager::addLogger(
|
|
"dao",
|
|
new FileLogger("DAO",$systemCatalogManager,$config->files->dao_log,true)
|
|
);
|
|
LoggingFacilityManager::getLogger("dao")->setLoggingLevel(LoggingFacility::$LEVEL_DEBUG);
|
|
|
|
|
|
LoggingFacilityManager::addLogger(
|
|
"system",
|
|
new FileLogger("SAAM",$systemCatalogManager,$config->files->saam_log,true)
|
|
);
|
|
LoggingFacilityManager::getLogger("saam")->setLoggingLevel(LoggingFacility::$LEVEL_DEBUG);
|
|
|
|
|
|
LoggingFacilityManager::addLogger(
|
|
"task",
|
|
new FileLogger("Task",$systemCatalogManager,$config->files->task_log,true)
|
|
);
|
|
LoggingFacilityManager::getLogger("task")->setLoggingLevel(LoggingFacility::$LEVEL_DEBUG);
|
|
|
|
LoggingFacilityManager::addLogger(
|
|
"general",
|
|
new FileLogger("General",$systemCatalogManager,$config->files->general_log,true)
|
|
);
|
|
LoggingFacilityManager::getLogger("general")->setLoggingLevel(LoggingFacility::$LEVEL_DEBUG);
|
|
|
|
?>
|