ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | emergency ($string) |
static | critical ($string) |
static | alert ($string) |
static | error ($string) |
static | warning ($string) |
static | notice ($string) |
static | info ($string) |
static | debug ($string) |
static | stats ($string) |
static | setCaptureLog ($val=true) |
static | getCapturedLog () |
Get the captured log. More... | |
static | setTrackId ($trackId) |
Set the track identifier to use in all logs. More... | |
static | flush () |
Flush any pending log messages to the logging handler. More... | |
static | isErrorMasked ($errno) |
Evaluate whether errors of a certain error level are masked or not. More... | |
static | maskErrors ($mask) |
Disable error reporting for the given log levels. More... | |
static | popErrorMask () |
Pop an error mask. More... | |
Data Fields | |
const | NO_TRACKID = '_NOTRACKIDYET_' |
This constant defines the string we set the track ID to while we are fetching the track ID from the session class. More... | |
const | EMERG = 0 |
const | ALERT = 1 |
const | CRIT = 2 |
const | ERR = 3 |
const | WARNING = 4 |
const | NOTICE = 5 |
const | INFO = 6 |
const | DEBUG = 7 |
Static Private Member Functions | |
static | defer ($level, $message, $stats) |
Defer a message for later logging. More... | |
static | createLoggingHandler ($handler=null) |
static | log ($level, $string, $statsLog=false) |
Static Private Attributes | |
static | $loggingHandler = null |
static | $logLevel = null |
static | $captureLog = false |
static | $capturedLog = array() |
static | $earlyLog = array() |
static | $logLevelStack = array() |
static | $logMask = 0 |
static | $trackid = self::NO_TRACKID |
This variable holds the track ID we have retrieved from the session class. More... | |
static | $format = '%date{%b %d %H:%M:%S} %process %level %stat[%trackid] %msg' |
static | $shutdownRegistered = false |
static | $shuttingDown = false |
Definition at line 13 of file Logger.php.
|
static |
Definition at line 155 of file Logger.php.
Referenced by SAML2\Compat\Ssp\Logger\alert(), and SAML2\Compat\Ssp\Logger\log().
|
staticprivate |
Definition at line 350 of file Logger.php.
References $config, $format, $handler, and SimpleSAML_Configuration\getInstance().
|
static |
Definition at line 144 of file Logger.php.
Referenced by SAML2\Compat\Ssp\Logger\critical(), SimpleSAML\Locale\Localization\getLangPath(), and SAML2\Compat\Ssp\Logger\log().
|
static |
Definition at line 211 of file Logger.php.
References DEBUG.
Referenced by SimpleSAML_Auth_ProcessingChain\__construct(), SimpleSAML_Auth_LDAP\__construct(), sspmod_ldap_Auth_Process_BaseFilter\__construct(), SimpleSAML\Locale\Localization\addDomain(), sspmod_negotiate_Auth_Source_Negotiate\adminBind(), sspmod_authwindowslive_Auth_Source_LiveID\authenticate(), sspmod_authlinkedin_Auth_Source_LinkedIn\authenticate(), sspmod_authtwitter_Auth_Source_Twitter\authenticate(), sspmod_negotiate_Auth_Source_Negotiate\authenticate(), SimpleSAML_Auth_LDAP\bind(), sspmod_statistics_AccessCheck\checkAccess(), sspmod_negotiate_Auth_Source_Negotiate\checkMask(), sspmod_saml_Message\checkSign(), SimpleSAML\Store\SQL\cleanKVStore(), sspmod_saml_SP_LogoutStore\cleanLogoutStore(), sspmod_authfacebook_Facebook\clearPersistentData(), SimpleSAML_Auth_State\cloneState(), SAML2\Compat\Ssp\Logger\debug(), SimpleSAML\Utils\XML\debugSAMLMessage(), sspmod_saml_Message\decryptAssertion(), sspmod_saml_Message\decryptAttributes(), SimpleSAML_Memcache\delete(), sspmod_consent_Consent_Store_Database\deleteAllConsents(), sspmod_consent_Consent_Store_Database\deleteConsent(), SimpleSAML_Session\doLogin(), SimpleSAML_Session\doLogout(), sspmod_negotiate_Auth_Source_Negotiate\fallBack(), sspmod_authwindowslive_Auth_Source_LiveID\finalStep(), sspmod_authtwitter_Auth_Source_Twitter\finalStep(), sspmod_authlinkedin_Auth_Source_LinkedIn\finalStep(), sspmod_authfacebook_Auth_Source_Facebook\finalStep(), SimpleSAML_Memcache\get(), sspmod_oauth_Consumer\getAccessToken(), SimpleSAML_Auth_LDAP\getAttributes(), SimpleSAML\Metadata\Sources\MDQ\getFromCache(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\getGroups(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\getGroupsActiveDirectory(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\getGroupsOpenLdap(), sspmod_saml_Auth_Source_SP\getIdPMetadata(), SimpleSAML\Locale\Localization\getLangPath(), sspmod_ldap_Auth_Process_BaseFilter\getLdap(), sspmod_authfacebook_Facebook\getPersistentData(), sspmod_saml_Auth_Process_SQLPersistentNameID\getValue(), sspmod_consent_Consent_Store_Cookie\hasConsent(), sspmod_consent_Consent_Store_Database\hasConsent(), SimpleSAML\Locale\Translate\includeInlineTranslation(), SimpleSAML\Locale\Translate\includeLanguageFile(), sspmod_authfacebook_Facebook\initSharedSession(), SimpleSAML_Session\isValid(), sspmod_metarefresh_MetaLoader\loadSource(), SimpleSAML_Auth_State\loadState(), SAML2\Compat\Ssp\Logger\log(), SimpleSAML_Error_Exception\logDebug(), sspmod_authcrypt_Auth_Source_Htpasswd\login(), sspmod_authcrypt_Auth_Source_Hash\login(), sspmod_negotiate_Auth_Source_Negotiate\logout(), sspmod_negotiate_Auth_Source_Negotiate\lookupUserData(), metarefresh_hook_cron(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\process(), sspmod_core_Auth_Process_LanguageAdaptor\process(), sspmod_core_Auth_Process_ScopeFromAttribute\process(), sspmod_authYubiKey_Auth_Process_OTP2YubiPrefix\process(), sspmod_core_Auth_Process_GenerateGroups\process(), sspmod_core_Auth_Process_CardinalitySingle\process(), sspmod_core_Auth_Process_Cardinality\process(), SimpleSAML\Module\core\Auth\Process\AttributeValueMap\process(), sspmod_consent_Auth_Process_Consent\process(), sspmod_saml_Message\processAssertion(), SimpleSAML\Locale\Translate\readDictionaryFile(), sspmod_saml_Auth_Source_SP\reauthLogout(), sspmod_saml_Auth_Source_SP\reauthPostLogin(), SimpleSAML\Module\cron\Cron\runTag(), sspmod_consent_Consent_Store_Cookie\saveConsent(), sspmod_consent_Consent_Store_Database\saveConsent(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\saveMetadata(), SimpleSAML_Auth_State\saveState(), SimpleSAML_Auth_LDAP\search(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\search(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\searchActiveDirectory(), SimpleSAML_Auth_LDAP\searchfordn(), SimpleSAML_XHTML_EMail\send(), sspmod_saml_IdP_SAML2\sendLogoutResponse(), SimpleSAML_Memcache\set(), SimpleSAML_Auth_LDAP\setOption(), sspmod_authfacebook_Facebook\setPersistentData(), SimpleSAML\Locale\Localization\setupL10N(), sspmod_negotiate_Auth_Source_Negotiate\spDisabledInMetadata(), sspmod_saml_Auth_Source_SP\startSSO1(), sspmod_saml_Auth_Source_SP\startSSO2(), SimpleSAML\XML\Validator\validateCertificate(), SimpleSAML_Metadata_SAMLParser\validateFingerprint(), SimpleSAML_Metadata_SAMLParser\validateSignature(), sspmod_metarefresh_MetaLoader\writeState(), and SimpleSAML\Metadata\Sources\MDQ\writeToCache().
|
staticprivate |
Defer a message for later logging.
int | $level | The log level corresponding to this message. |
string | $message | The message itself to log. |
boolean | $stats | Whether this is a stats message or a regular one. |
Definition at line 337 of file Logger.php.
References $message, and Sabre\VObject\$stats.
|
static |
Definition at line 133 of file Logger.php.
Referenced by SAML2\Compat\Ssp\Logger\emergency(), and SAML2\Compat\Ssp\Logger\log().
|
static |
Definition at line 166 of file Logger.php.
Referenced by sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef\__construct(), sspmod_consent_Auth_Process_Consent\__construct(), sspmod_consent_Consent_Store_Database\_execute(), sspmod_negotiate_Auth_Source_Negotiate\adminBind(), sspmod_negotiate_Auth_Source_Negotiate\authenticate(), sspmod_authX509_Auth_Source_X509userCert\authenticate(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\deleteMetadata(), SimpleSAML_Session\doLogin(), SAML2\Compat\Ssp\Logger\error(), sspmod_saml_IdP_SAML2\generateNameIdValue(), SimpleSAML\Locale\Language\getInstalledLanguages(), SimpleSAML\Locale\Localization\getLangPath(), SimpleSAML\Locale\Language\getLanguageLocalizedName(), SimpleSAML_Session\getSessionFromRequest(), SimpleSAML\Store\SQL\insertOrUpdate(), SimpleSAML\Module\isModuleEnabledWithConf(), SimpleSAML\Locale\Localization\loadGettextGettextFromPO(), SAML2\Compat\Ssp\Logger\log(), SimpleSAML_Error_Exception\logError(), SimpleSAML_Auth_LDAP\makeException(), sspmod_authX509_Auth_Process_ExpiryWarning\process(), sspmod_expirycheck_Auth_Process_ExpiryDate\process(), sspmod_consent_Auth_Process_Consent\process(), sspmod_saml_IdP_SAML2\processSOAPAuthnRequest(), SimpleSAML\Locale\Translate\readDictionaryFile(), SimpleSAML\Locale\Translate\readDictionaryJSON(), SimpleSAML_Session\save(), SimpleSAML_Error_Error\saveError(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\saveMetadata(), and sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef\unauthorized().
|
static |
Flush any pending log messages to the logging handler.
This method is intended to be registered as a shutdown handler, so that any pending messages that weren't sent to the logging handler at that point, can still make it. It is therefore not intended to be called manually.
Definition at line 266 of file Logger.php.
References $s, and SimpleSAML_Session\getSessionFromRequest().
|
static |
Get the captured log.
Definition at line 242 of file Logger.php.
|
static |
Definition at line 199 of file Logger.php.
Referenced by sspmod_saml_SP_LogoutStore\addSession(), sspmod_negotiate_Auth_Source_Negotiate\authenticate(), sspmod_authX509_Auth_Source_X509userCert\authenticate(), driveProcessingChain(), sspmod_oauth_OAuthStore\getAuthorizedData(), sspmod_saml_IdP_SAML2\getLogoutURL(), sspmod_cdc_Server\handleRequest(), sspmod_consent_Consent_Store_Cookie\hasConsent(), SAML2\Compat\Ssp\Logger\info(), sspmod_oauth_OAuthStore\isAuthorized(), sspmod_metarefresh_MetaLoader\loadSource(), sspmod_discopower_PowerIdPDisco\log(), SAML2\Compat\Ssp\Logger\log(), SimpleSAML_XHTML_IdPDisco\log(), sspmod_radius_Auth_Source_Radius\login(), sspmod_ldap_ConfigHelper\login(), sspmod_authYubiKey_Auth_Source_YubiKey\login(), SimpleSAML_Error_Exception\logInfo(), SimpleSAML\IdP\TraditionalLogoutHandler\logoutNextSP(), sspmod_oauth_OAuthStore\lookup_consumer(), sspmod_oauth_OAuthStore\lookup_consumer_by_requestToken(), sspmod_oauth_OAuthStore\lookup_nonce(), sspmod_oauth_OAuthStore\lookup_token(), SimpleSAML_Auth_LDAP\makeException(), metarefresh_hook_cron(), sspmod_oauth_OAuthStore\moveAuthorizedData(), sspmod_oauth_OAuthStore\new_access_token(), sspmod_oauth_OAuthStore\new_request_token(), SimpleSAML\IdP\TraditionalLogoutHandler\onResponse(), sspmod_authYubiKey_Auth_Process_OTP2YubiPrefix\process(), sspmod_ldap_Auth_Process_AttributeAddFromLDAP\process(), sspmod_adfs_IdP_ADFS\receiveAuthnRequest(), sspmod_saml_IdP_SAML1\receiveAuthnRequest(), sspmod_saml_IdP_SAML2\receiveAuthnRequest(), sspmod_saml_IdP_SAML2\receiveLogoutMessage(), riak_hook_cron(), sanitycheck_hook_cron(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\saveMetadata(), sspmod_saml_IdP_SAML2\sendLogoutRequest(), sspmod_saml_IdP_SAML2\sendLogoutResponse(), sspmod_saml_IdP_SAML1\sendResponse(), sspmod_saml_IdP_SAML2\sendResponse(), sspmod_saml_Auth_Source_SP\startSLO2(), SimpleSAML\Locale\Translate\t(), and SimpleSAML_Auth_LDAP\validate().
|
static |
Evaluate whether errors of a certain error level are masked or not.
int | $errno | The level of the error to check. |
Definition at line 291 of file Logger.php.
|
staticprivate |
Definition at line 394 of file Logger.php.
References $_SERVER, $format, and $formats.
|
static |
Disable error reporting for the given log levels.
Every call to this function must be followed by a call to popErrorMask().
int | $mask | The log levels that should be masked. |
Definition at line 304 of file Logger.php.
References $mask.
Referenced by SimpleSAML\Utils\Time\initTimezone(), SimpleSAML\Utils\Config\Metadata\isHiddenFromDiscovery(), and SimpleSAML_Utilities\maskErrors().
|
static |
Definition at line 188 of file Logger.php.
Referenced by sspmod_saml_Message\checkSign(), SAML2\Compat\Ssp\Logger\log(), SAML2\Compat\Ssp\Logger\notice(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\searchActiveDirectory(), and statistics_hook_cron().
|
static |
Pop an error mask.
This function restores the previous error mask.
Definition at line 322 of file Logger.php.
Referenced by SimpleSAML\Utils\Time\initTimezone(), SimpleSAML\Utils\Config\Metadata\isHiddenFromDiscovery(), and SimpleSAML_Utilities\popErrorMask().
|
static |
Definition at line 233 of file Logger.php.
|
static |
Set the track identifier to use in all logs.
$trackId | string The track identifier to use during this session. |
Definition at line 253 of file Logger.php.
Referenced by SimpleSAML_Session\__construct(), and SimpleSAML_Session\load().
|
static |
Definition at line 222 of file Logger.php.
Referenced by sspmod_core_Auth_UserPassBase\handleLogin(), sspmod_core_Auth_Process_StatisticsWithAttribute\process(), sspmod_consent_Auth_Process_Consent\process(), and sspmod_saml_IdP_SAML2\receiveLogoutMessage().
|
static |
Definition at line 177 of file Logger.php.
Referenced by sspmod_saml_Auth_Process_PersistentNameID2TargetedID\__construct(), SimpleSAML\Module\core\Auth\Process\AttributeValueMap\__construct(), SimpleSAML\Locale\Translate\__construct(), SimpleSAML_Auth_LDAP\__construct(), sspmod_consent_Auth_Process_Consent\__construct(), SimpleSAML_Utilities\_doRedirect(), sspmod_consent_Consent_Store_Cookie\_verify(), SimpleSAML_Metadata_SAMLBuilder\addMetadata(), SimpleSAML_Auth_ProcessingChain\addUserID(), sspmod_saml_IdP_SAML2\buildAssertion(), SimpleSAML\Utils\XML\checkSAMLMessage(), sspmod_saml_SP_LogoutStore\createLogoutTable(), sspmod_consent_Consent_Store_Database\deleteAllConsents(), sspmod_consent_Consent_Store_Database\deleteConsent(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\deleteMetadata(), sspmod_core_Auth_Process_AttributeLimit\filterAttributeValues(), SimpleSAML_XHTML_Template\findThemeTemplateDirs(), SimpleSAML_Memcache\get(), sspmod_saml_IdP_SAML2\getAssertionConsumerService(), SimpleSAML_Auth_LDAP\getAttributes(), sspmod_cdc_Server\getCDC(), sspmod_consent_Consent_Store_Cookie\getConsents(), SimpleSAML_Metadata_MetaDataStorageHandler\getList(), SimpleSAML_Metadata_MetaDataStorageHandlerPdo\getMetaData(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\getMetaData(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\getMetadataSet(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\getMetadataSets(), SimpleSAML\Metadata\Sources\MDQ\getParsedSet(), SimpleSAML_Session\getSession(), sspmod_saml_Auth_Process_PersistentNameID\getValue(), sspmod_saml_Auth_Process_AttributeNameID\getValue(), sspmod_saml_Auth_Process_SQLPersistentNameID\getValue(), sspmod_saml_IdP_SAML2\handleAuthError(), SimpleSAML_Configuration\loadFromFile(), sspmod_metarefresh_MetaLoader\loadSource(), SAML2\Compat\Ssp\Logger\log(), sspmod_authcrypt_Auth_Source_Htpasswd\login(), sspmod_ldap_Auth_Source_LDAPMulti\login(), SimpleSAML_Auth_Source\logoutCallback(), SimpleSAML\IdP\TraditionalLogoutHandler\logoutNextSP(), SimpleSAML_Error_Exception\logWarning(), SimpleSAML_Auth_LDAP\makeException(), oauth_hook_cron(), SimpleSAML\IdP\TraditionalLogoutHandler\onResponse(), sspmod_core_Auth_Process_WarnShortSSOInterval\process(), SimpleSAML\Module\saml\Auth\Process\FilterScopes\process(), sspmod_cdc_Auth_Process_CDC\process(), sspmod_core_Auth_Process_ScopeFromAttribute\process(), sspmod_authX509_Auth_Process_ExpiryWarning\process(), sspmod_saml_BaseNameIDGenerator\process(), sspmod_core_Auth_Process_Cardinality\process(), sspmod_expirycheck_Auth_Process_ExpiryDate\process(), sspmod_ldap_Auth_Process_AttributeAddFromLDAP\process(), SimpleSAML_Metadata_SAMLParser\processExtensions(), sspmod_saml_Auth_Source_SP\reauthenticate(), sspmod_saml_IdP_SAML2\receiveLogoutMessage(), SimpleSAML\Utils\HTTP\redirect(), riak_hook_cron(), SimpleSAML_Error_Error\setHTTPCode(), sspmodAutoloadPSR0(), statistics_hook_cron(), SimpleSAML\Locale\Translate\t(), temporaryLoader(), and SAML2\Compat\Ssp\Logger\warning().
|
staticprivate |
Definition at line 34 of file Logger.php.
|
staticprivate |
Definition at line 29 of file Logger.php.
|
staticprivate |
Definition at line 41 of file Logger.php.
|
staticprivate |
Definition at line 102 of file Logger.php.
|
staticprivate |
Definition at line 19 of file Logger.php.
|
staticprivate |
Definition at line 24 of file Logger.php.
|
staticprivate |
Definition at line 50 of file Logger.php.
|
staticprivate |
Definition at line 59 of file Logger.php.
|
staticprivate |
Definition at line 109 of file Logger.php.
|
staticprivate |
Definition at line 116 of file Logger.php.
|
staticprivate |
This variable holds the track ID we have retrieved from the session class.
It can also be NULL, in which case we haven't fetched the track ID yet, or self::NO_TRACKID, which means that we are fetching the track ID now.
Definition at line 72 of file Logger.php.
const SimpleSAML\Logger::ALERT = 1 |
Definition at line 119 of file Logger.php.
const SimpleSAML\Logger::CRIT = 2 |
Definition at line 120 of file Logger.php.
const SimpleSAML\Logger::DEBUG = 7 |
Definition at line 125 of file Logger.php.
const SimpleSAML\Logger::EMERG = 0 |
Definition at line 118 of file Logger.php.
const SimpleSAML\Logger::ERR = 3 |
Definition at line 121 of file Logger.php.
const SimpleSAML\Logger::INFO = 6 |
Definition at line 124 of file Logger.php.
const SimpleSAML\Logger::NO_TRACKID = '_NOTRACKIDYET_' |
This constant defines the string we set the track ID to while we are fetching the track ID from the session class.
This is used to prevent infinite recursion.
Definition at line 66 of file Logger.php.
const SimpleSAML\Logger::NOTICE = 5 |
Definition at line 123 of file Logger.php.
const SimpleSAML\Logger::WARNING = 4 |
Definition at line 122 of file Logger.php.