ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Logging factory. More...
Public Member Functions | |
initUser ($a_login) | |
Init user specific log options. More... | |
getSettings () | |
Get settigns. More... | |
getComponentLogger ($a_component_id) | |
Get component logger. More... | |
Static Public Member Functions | |
static | getInstance () |
static | newInstance (ilLoggingSettings $settings) |
get new instance More... | |
static | getLogger ($a_component_id) |
Get component logger. More... | |
static | getRootLogger () |
The unique root logger has a fixed error level. More... | |
Data Fields | |
const | DEFAULT_FORMAT = "[%suid%] [%datetime%] %channel%.%level_name%: %message% %context% %extra%\n" |
const | ROOT_LOGGER = 'root' |
const | COMPONENT_ROOT = 'log_root' |
const | SETUP_LOGGER = 'setup' |
Protected Member Functions | |
__construct (ilLoggingSettings $settings) | |
isConsoleAvailable () | |
Check if console handler is available. More... | |
getLoggers () | |
Private Attributes | |
$settings = null | |
$enabled = false | |
$loggers = array() | |
Static Private Attributes | |
static | $instance = null |
Logging factory.
Definition at line 21 of file class.ilLoggerFactory.php.
|
protected |
Definition at line 36 of file class.ilLoggerFactory.php.
References $settings, getSettings(), and settings().
ilLoggerFactory::getComponentLogger | ( | $a_component_id | ) |
Get component logger.
type | $a_component_id |
Definition at line 153 of file class.ilLoggerFactory.php.
References $GLOBALS, ilLogLevel\DEBUG, getSettings(), isConsoleAvailable(), and user().
|
static |
Definition at line 46 of file class.ilLoggerFactory.php.
References $settings, and ilLoggingDBSettings\getInstance().
Referenced by ilGroupAppEventListener\__construct(), ilOpenIdConnectAppEventListener\__construct(), ilCourseAppEventListener\__construct(), ilRbacAdmin\assignUser(), ilRbacAdmin\deassignUser(), ilGroupAppEventListener\handleUserAssignments(), ilCourseAppEventListener\handleUserAssignments(), ilInitialisation\initILIAS(), and ilInitialisation\initStyle().
|
static |
Get component logger.
string | $a_component_id |
Definition at line 74 of file class.ilLoggerFactory.php.
References $factory.
Referenced by ilRpcClient\__call(), ilAuthProviderFactory\__construct(), ilFSWebStorageExercise\__construct(), ilAuthFrontendCredentials\__construct(), ilUserRoleStartingPointTableGUI\__construct(), ilUserStartingPointGUI\__construct(), ilImportMapping\__construct(), ilMediaObjectDataSet\__construct(), ilZipBackgroundTaskHandler\__construct(), ilAuthProvider\__construct(), ilMailCronOrphanedMailsDeletionProcessor\__construct(), ilAuthFrontend\__construct(), ilGlossaryDataSet\__construct(), ilObjUserFolderGUI\__construct(), ilWikiDataSet\__construct(), ilExport\__construct(), ilCalendarScheduleFilterTimings\__construct(), ilAwarenessUserProvider\__construct(), ilSurveySkill\__construct(), ilImport\__construct(), ilAuthStatus\__construct(), ilBookCronNotification\__construct(), ilLearningModuleDataSet\__construct(), ilObjFileGUI\__construct(), ilAuthFrontendFactory\__construct(), ilExAssignmentReminder\__construct(), ilObjLoggingSettingsGUI\__construct(), ilAdvancedMDParser\__construct(), ilMailAddressTypeFactory\__construct(), ilStyleDataSet\__construct(), ilSoapClient\__construct(), ilGlossaryTermPermission\__construct(), ilContainerXmlParser\__construct(), ilStartUpGUI\__construct(), ilBackgroundTask\__construct(), ilSCORM2004Item\__construct(), ilWikiHTMLExport\__construct(), ilRpcClient\__construct(), ilRbacReview\__construct(), ilDataSet\__construct(), ilObjWikiGUI\__construct(), ilWikiUserHTMLExport\__construct(), ilObjSurveyGUI\__construct(), ilPageContent\__construct(), ilCOPageHTMLExport\__construct(), ilPDStudyProgrammeSimpleListGUI\__construct(), ilGlossaryTermGUI\__construct(), ilMembershipCronNotificationsData\__construct(), SurveyCategories\__construct(), ilPageContentGUI\__construct(), ilObjContentObject\__construct(), ilObjMediaPoolGUI\__construct(), ilSurveyEvaluationGUI\__construct(), ilAdvancedMDRecordParser\__construct(), ilCategoryXmlParser\__construct(), ilMDSaxParser\__construct(), ilObjSurveyQuestionPoolGUI\__construct(), ilMDBase\__construct(), ilSurveyPageGUI\__construct(), ilPageEditorGUI\__construct(), ilAppEventHandler\__construct(), ilSurveyExecutionGUI\__construct(), SurveyQuestionGUI\__construct(), ilAccess\__construct(), ilContObjParser\__construct(), ilObjFile\__construct(), ilObjGlossaryGUI\__construct(), ilContainerContentGUI\__construct(), ilObjectCopyGUI\__construct(), ilExAssignment\__construct(), ilPageObjectGUI\__construct(), ilPageObject\__construct(), ilTree\__construct(), SurveyQuestion\__construct(), ilObjSurvey\__construct(), ilAccountRegistrationGUI\__distributeMails(), ilLinkChecker\__validateLinks(), ilStartUpGUI\_checkGoto(), ilAuthUtils\_getAuthModeOfUser(), ilObject\_prepareCloneSelection(), ilTree\_removeEntry(), ilLPStatus\_updateStatus(), ilContainer\_writeContainerSetting(), ilObjUser\_writeHistory(), ilCalendarScheduleFilterTimings\addCustomEvents(), ilUserProfileIncompleteRequestTargetAdjustmentCase\adjust(), ilDidacticTemplateLocalRoleAction\apply(), ilObject\applyDidacticTemplate(), ilGroupMembershipGUI\assignMembers(), ilCourseMembershipGUI\assignMembers(), ilLearningSequenceMembershipGUI\assignMembers(), ilRbacAdmin\assignRoleToFolder(), ilCronStartUp\authenticate(), ilWebDAVAuthentication\authenticate(), ilInitialisation\authenticate(), ilSearchGUI\autoComplete(), ilInitialisation\blockedAuthentication(), ilvCard\buildVCard(), ilObjLinkResourceGUI\callLink(), ilSoapUtils\callNextDependency(), ilSoapUtils\callNextNode(), ilObjFileDAV\checkForVirus(), ilCaptchaUtil\checkFreetype(), ilAuthFrontend\checkIp(), ilContainer\cloneAllObject(), ilObjGroup\cloneAutoGeneratedRoles(), ilCourseObjectiveQuestion\cloneDependencies(), ilSoapUtils\cloneDependencies(), ilObjGroup\cloneDependencies(), ilObjCourse\cloneDependencies(), ilSoapUtils\cloneNode(), ilContainerSorting\cloneSorting(), ilAwarenessUserCollector\collectUsers(), ilDidacticTemplateGUI\confirmTemplateSwitch(), ilLORandomTestQuestionPools\copy(), ilObjectCopyGUI\copyContainer(), ilObjectCopyGUI\copyContainerToTargets(), ilContObjParser\copyMobFiles(), ilObjectCopyGUI\copyMultipleNonContainer(), ilRbacAdmin\copyRolePermissionIntersection(), ilContainer\create(), ilObjContainerDAV\createDirectory(), ilDidacticTemplateLocalPolicyAction\createLocalPolicy(), ilObjMediaObject\delete(), ilObjRole\delete(), ilPageObject\delete(), ilDidacticTemplateBlockRoleAction\deleteLocalPolicy(), ilMail\distributeMail(), ilStartUpGUI\doApacheAuthentication(), ilLDAPServer\doConnectionCheck(), IMSGlobal\LTI\ToolProvider\ResourceLink\doLTI11Service(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilObjRoleFolderGUI\doRemoveRolePermissions(), ilStartUpGUI\doSamlAuthentication(), IMSGlobal\LTI\ToolProvider\ResourceLink\doService(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilRepositoryGUI\executeCommand(), ilAuthBase\failedLoginObserver(), ilChatroomServerConnector\file_get_contents(), ilObjFileDAV\fileUploadWithStream(), ilLogComponentTableGUI\fillRow(), ilLuceneSearchResultFilter\filter(), ilDidacticTemplateAction\filterRoles(), ilLTIToolConsumer\fromRecordId(), ilMembershipNotifications\getActiveUsersforAllObjects(), ilSkillUsage\getAllUsagesOfTemplate(), ilAuthModeDetermination\getAuthModeSequence(), ilLuceneAdvancedSearchFields\getFormElement(), ilAttendanceList\getHTML(), ilAwarenessUserProviderCurrentCourse\getInitialUserSet(), ilContainerBlockPropertiesStorage\getProperty(), ilMaterializedPathTree\getRelation(), ilNestedSetTree\getRelation(), ilRbacReview\getRolesOfRoleFolder(), ilNestedSetTree\getSubtreeInfo(), ilInitialisation\goToLogin(), ilAuthFrontend\handleAuthenticationSuccess(), ilOpenIdConnectAppEventListener\handleEvent(), ilObjFileDAV\handleFileUpload(), ilWebLinkXmlParser\handlerEndTag(), ilAuthProviderSaml\handleSamlAuth(), ilLuceneSearcher\highlight(), ilCourseObjective\ilClone(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), ilDidacticTemplateSettingsGUI\importTemplate(), ilAuthProviderSaml\importUser(), ilStyleImporter\init(), ilContainerImporter\init(), ilLearningModuleImporter\init(), ilWikiExporter\init(), ilSurveyImporter\init(), ilObjectCopyGUI\init(), ilAuthBase\initAuth(), ilObjectRolePermissionTableGUI\initColumns(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilRbacAdmin\initIntersectionPermissions(), ilNestedSetTree\insertNode(), ilMaterializedPathTree\insertNode(), ilTree\insertNodeFromTrash(), ilRepUtil\insertSavedNodes(), ilAuthProviderLTI\isAuthModeLTI(), ilUserProfile\isProfileIncomplete(), ilSoapUtils\linkNode(), ilObjectPlugin\loadOrgUnitPlugin(), ilObjectPlugin\loadRepoPlugin(), ilSoapUserAdministration\login(), ilAuthBase\loginObserver(), ilAuthBase\logoutObserver(), ilMDRights\lookupRightsByTypeAndCopyright(), ilMaterializedPathTree\moveTree(), ilNestedSetTree\moveTree(), ilAuthLogObserver\notify(), ilLogComponentTableGUI\parse(), ilLuceneHighlighterResultParser\parse(), ilMail\parseAddresses(), ilRepositoryObjectDetailSearch\performLuceneSearch(), ilObjectSearch\performSearch(), ilLuceneSearcher\performSearch(), ilMailCronOrphanedMailsDeletionProcessor\processDeletion(), SurveyQuestion\QTIMaterialToString(), ilLPStatus\raiseEvent(), ilAttendanceList\readOrderedExportableFields(), ilObjLTIAdministration\readReleaseObjects(), ilSystemCheckTrash\readSelectedDeleted(), ilLDAPUserSynchronisation\readUserData(), ilWaitingListTableGUI\readUserData(), ilInitialisation\redirect(), ilObjSearchSettingsGUI\refreshLuceneSettings(), ilMail\replacePlaceholders(), ilInitialisation\resumeUserSession(), ilDidacticTemplateLocalPolicyAction\revertLocalPolicy(), ilLuceneIndexer\run(), ilExcCronReminders\run(), ilSkillNotifications\run(), ilMailCronOrphanedMails\run(), ilObjLoggingSettingsGUI\saveComponentLevels(), ilMailCronOrphanedMails\saveCustomSettings(), ilMultilingualismGUI\saveLanguages(), ilPermissionGUI\savePermissions(), ilMailLuceneSearcher\search(), ilLPTableBaseGUI\searchObjects(), ilMailMimeTransportNull\send(), ilMailMimeTransportBase\send(), IMSGlobal\LTI\HTTPMessage\send(), ilMailNotification\sendMail(), ilMembershipCronNotifications\sendMail(), ilMail\sendMail(), ilExAssignmentReminder\sentReminderPlaceholders(), ilObjSurvey\sentReminderPlaceholders(), ilRbacAdmin\setBlockedStatus(), ilFileXMLParser\setFileContents(), ilQueryParser\setMinWordLength(), ilUserProfileIncompleteRequestTargetAdjustmentCase\shouldAdjustRequest(), ilRepositorySearchGUI\showClipboard(), ilMailFormGUI\showForm(), ilObjectCopyGUI\showItemSelection(), ilSearchAppEventListener\storeElement(), ilContainerBlockPropertiesStorage\storeProperty(), ilPasswordAssistanceGUI\submitAssistanceForm(), ilPasswordAssistanceGUI\submitUsernameAssistanceForm(), ilDidacticTemplateUtils\switchTemplate(), ilLDAPUserSynchronisation\sync(), ilAuthFrontendCredentialsSoap\tryAuthenticationOnLoginPage(), ilPermissionGUI\unblockRoles(), ilLogComponentLevel\update(), ilContainer\update(), ilLuceneIndexer\updateLuceneIndex(), ilClient\updateNIC(), ilObjGroupGUI\updateObject(), ilGroupMembershipGUI\updateParticipantsStatus(), ilObjectCopyGUI\updateProgress(), ilMDEditorGUI\updateQuickEdit(), ilExAssignment\uploadAssignmentFiles(), ilDidacticTemplateExcludeFilterPattern\valid(), ilDidacticTemplateIncludeFilterPattern\valid(), ilLuceneSearchResult\valid(), ilMaterializedPathTree\validateParentRelations(), ilNestedSetTree\validateParentRelations(), and ilLPStatus\writeStatus().
|
protected |
Definition at line 143 of file class.ilLoggerFactory.php.
References $loggers.
|
static |
The unique root logger has a fixed error level.
Definition at line 84 of file class.ilLoggerFactory.php.
References $factory.
Referenced by ilAssFileUploadUploadsExporter\createFileUploadCollectionZipFile(), ilInitialisation\initLog(), and assFlashQuestion\saveAdditionalQuestionDataToDb().
ilLoggerFactory::getSettings | ( | ) |
Get settigns.
Definition at line 134 of file class.ilLoggerFactory.php.
References $settings.
Referenced by __construct(), getComponentLogger(), and initUser().
ilLoggerFactory::initUser | ( | $a_login | ) |
Init user specific log options.
type | $a_login |
Definition at line 96 of file class.ilLoggerFactory.php.
References getSettings(), and isConsoleAvailable().
|
protected |
Check if console handler is available.
Definition at line 118 of file class.ilLoggerFactory.php.
References $_GET, ilContext\CONTEXT_WEB, and ilContext\getType().
Referenced by getComponentLogger(), and initUser().
|
static |
get new instance
ilLoggingSettings | $settings |
Definition at line 61 of file class.ilLoggerFactory.php.
References $settings.
|
private |
Definition at line 33 of file class.ilLoggerFactory.php.
|
staticprivate |
Definition at line 29 of file class.ilLoggerFactory.php.
|
private |
Definition at line 34 of file class.ilLoggerFactory.php.
Referenced by getLoggers().
|
private |
Definition at line 31 of file class.ilLoggerFactory.php.
Referenced by __construct(), getInstance(), getSettings(), and newInstance().
const ilLoggerFactory::COMPONENT_ROOT = 'log_root' |
Definition at line 26 of file class.ilLoggerFactory.php.
const ilLoggerFactory::DEFAULT_FORMAT = "[%suid%] [%datetime%] %channel%.%level_name%: %message% %context% %extra%\n" |
Definition at line 23 of file class.ilLoggerFactory.php.
const ilLoggerFactory::ROOT_LOGGER = 'root' |
Definition at line 25 of file class.ilLoggerFactory.php.
const ilLoggerFactory::SETUP_LOGGER = 'setup' |
Definition at line 27 of file class.ilLoggerFactory.php.