ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SimpleSAML\Logger Class Reference
+ Collaboration diagram for SimpleSAML\Logger:

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
 

Detailed Description

Definition at line 15 of file Logger.php.

Member Function Documentation

◆ alert()

static SimpleSAML\Logger::alert (   $string)
static

Definition at line 157 of file Logger.php.

158 {
159 self::log(self::ALERT, $string);
160 }
static log($level, $string, $statsLog=false)
Definition: Logger.php:396

Referenced by SAML2\Compat\Ssp\Logger\alert(), and SAML2\Compat\Ssp\Logger\log().

+ Here is the caller graph for this function:

◆ createLoggingHandler()

static SimpleSAML\Logger::createLoggingHandler (   $handler = null)
staticprivate

Definition at line 352 of file Logger.php.

353 {
354 // set to false to indicate that it is being initialized
355 self::$loggingHandler = false;
356
357 // a set of known logging handlers
358 $known_handlers = array(
359 'syslog' => 'SimpleSAML\Logger\SyslogLoggingHandler',
360 'file' => 'SimpleSAML\Logger\FileLoggingHandler',
361 'errorlog' => 'SimpleSAML\Logger\ErrorLogLoggingHandler',
362 );
363
364 // get the configuration
366 assert($config instanceof \SimpleSAML_Configuration);
367
368 // setting minimum log_level
369 self::$logLevel = $config->getInteger('logging.level', self::INFO);
370
371 // get the metadata handler option from the configuration
372 if (is_null($handler)) {
373 $handler = $config->getString('logging.handler', 'syslog');
374 }
375
376 if (!array_key_exists($handler, $known_handlers) && class_exists($handler)) {
377 if (!in_array('SimpleSAML\Logger\LoggingHandlerInterface', class_implements($handler), true)) {
378 throw new \Exception("The logging handler '$handler' is invalid.");
379 }
380 } else {
381 $handler = strtolower($handler);
382 if (!array_key_exists($handler, $known_handlers)) {
383 throw new \Exception(
384 "Invalid value for the 'logging.handler' configuration option. Unknown handler '".$handler."''."
385 );
386 }
387 $handler = $known_handlers[$handler];
388 }
389 self::$loggingHandler = new $handler($config);
390
391 self::$format = $config->getString('logging.format', self::$format);
392 self::$loggingHandler->setLogFormat(self::$format);
393 }
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
$format
Definition: metadata.php:141
$handler

References $config, $format, $handler, and SimpleSAML_Configuration\getInstance().

+ Here is the call graph for this function:

◆ critical()

static SimpleSAML\Logger::critical (   $string)
static

Definition at line 146 of file Logger.php.

147 {
148 self::log(self::CRIT, $string);
149 }

Referenced by SAML2\Compat\Ssp\Logger\critical(), SimpleSAML\Locale\Localization\getLangPath(), and SAML2\Compat\Ssp\Logger\log().

+ Here is the caller graph for this function:

◆ debug()

static SimpleSAML\Logger::debug (   $string)
static

Definition at line 213 of file Logger.php.

214 {
215 self::log(self::DEBUG, $string);
216 }
const DEBUG

References DEBUG.

Referenced by SimpleSAML_Auth_LDAP\__construct(), SimpleSAML_Auth_ProcessingChain\__construct(), sspmod_ldap_Auth_Process_BaseFilter\__construct(), SimpleSAML\Locale\Localization\addDomain(), sspmod_negotiate_Auth_Source_Negotiate\adminBind(), sspmod_authlinkedin_Auth_Source_LinkedIn\authenticate(), sspmod_authmyspace_Auth_Source_MySpace\authenticate(), sspmod_authtwitter_Auth_Source_Twitter\authenticate(), sspmod_authwindowslive_Auth_Source_LiveID\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(), 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_authfacebook_Auth_Source_Facebook\finalStep(), sspmod_authlinkedin_Auth_Source_LinkedIn\finalStep(), sspmod_authmyspace_Auth_Source_MySpace\finalStep(), sspmod_authtwitter_Auth_Source_Twitter\finalStep(), sspmod_authwindowslive_Auth_Source_LiveID\finalStep(), SimpleSAML_Memcache\get(), sspmod_oauth_Consumer\getAccessToken(), SimpleSAML_Auth_LDAP\getAttributes(), SimpleSAML\Metadata\Sources\MDQ\getFromCache(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\getGroups(), 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_Hash\login(), sspmod_authcrypt_Auth_Source_Htpasswd\login(), sspmod_negotiate_Auth_Source_Negotiate\logout(), sspmod_negotiate_Auth_Source_Negotiate\lookupUserData(), metarefresh_hook_cron(), SimpleSAML\Module\core\Auth\Process\AttributeValueMap\process(), sspmod_core_Auth_Process_GenerateGroups\process(), sspmod_core_Auth_Process_LanguageAdaptor\process(), sspmod_core_Auth_Process_ScopeFromAttribute\process(), sspmod_ldap_Auth_Process_AttributeAddUsersGroups\process(), sspmod_authYubiKey_Auth_Process_OTP2YubiPrefix\process(), sspmod_consent_Auth_Process_Consent\process(), sspmod_saml_Message\processAssertion(), SimpleSAML\Locale\Translate\readDictionaryFile(), sspmod_saml_Auth_Source_SP\reauthLogout(), 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\writeMetadataFiles(), sspmod_metarefresh_MetaLoader\writeState(), and SimpleSAML\Metadata\Sources\MDQ\writeToCache().

+ Here is the caller graph for this function:

◆ defer()

static SimpleSAML\Logger::defer (   $level,
  $message,
  $stats 
)
staticprivate

Defer a message for later logging.

Parameters
int$levelThe log level corresponding to this message.
string$messageThe message itself to log.
boolean$statsWhether this is a stats message or a regular one.

Definition at line 339 of file Logger.php.

340 {
341 // save the message for later
342 self::$earlyLog[] = array('level' => $level, 'string' => $message, 'statsLog' => $stats);
343
344 // register a shutdown handler if needed
345 if (!self::$shutdownRegistered) {
346 register_shutdown_function(array('SimpleSAML\Logger', 'flush'));
347 self::$shutdownRegistered = true;
348 }
349 }
catch(Exception $e) $message
$stats

References $message, and $stats.

◆ emergency()

static SimpleSAML\Logger::emergency (   $string)
static

Definition at line 135 of file Logger.php.

136 {
137 self::log(self::EMERG, $string);
138 }

Referenced by SAML2\Compat\Ssp\Logger\emergency(), and SAML2\Compat\Ssp\Logger\log().

+ Here is the caller graph for this function:

◆ error()

static SimpleSAML\Logger::error (   $string)
static

Definition at line 168 of file Logger.php.

169 {
170 self::log(self::ERR, $string);
171 }

Referenced by sspmod_consent_Auth_Process_Consent\__construct(), sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef\__construct(), sspmod_consent_Consent_Store_Database\_execute(), sspmod_negotiate_Auth_Source_Negotiate\adminBind(), sspmod_authX509_Auth_Source_X509userCert\authenticate(), sspmod_negotiate_Auth_Source_Negotiate\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_consent_Auth_Process_Consent\process(), sspmod_expirycheck_Auth_Process_ExpiryDate\process(), 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().

+ Here is the caller graph for this function:

◆ flush()

static SimpleSAML\Logger::flush ( )
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 268 of file Logger.php.

269 {
270 try {
272 } catch (\Exception $e) {
273 // loading session failed. We don't care why, at this point we have a transient session, so we use that
274 self::error('Cannot load or create session: '.$e->getMessage());
276 }
277 self::$trackid = $s->getTrackID();
278
279 self::$shuttingDown = true;
280 foreach (self::$earlyLog as $msg) {
281 self::log($msg['level'], $msg['string'], $msg['statsLog']);
282 }
283 }
static error($string)
Definition: Logger.php:168
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
$s
Definition: pwgen.php:45

References $s, error(), and SimpleSAML_Session\getSessionFromRequest().

+ Here is the call graph for this function:

◆ getCapturedLog()

static SimpleSAML\Logger::getCapturedLog ( )
static

Get the captured log.

Definition at line 244 of file Logger.php.

245 {
246 return self::$capturedLog;
247 }
static $capturedLog
Definition: Logger.php:36

◆ info()

static SimpleSAML\Logger::info (   $string)
static

Definition at line 201 of file Logger.php.

202 {
203 self::log(self::INFO, $string);
204 }

Referenced by sspmod_authX509_Auth_Source_X509userCert\authenticate(), sspmod_negotiate_Auth_Source_Negotiate\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(), SAML2\Compat\Ssp\Logger\log(), SimpleSAML_XHTML_IdPDisco\log(), sspmod_discopower_PowerIdPDisco\log(), sspmod_authYubiKey_Auth_Source_YubiKey\login(), sspmod_radius_Auth_Source_Radius\login(), sspmod_ldap_ConfigHelper\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_ldap_Auth_Process_AttributeAddFromLDAP\process(), sspmod_authYubiKey_Auth_Process_OTP2YubiPrefix\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(), SimpleSAML_Auth_LDAP\validate(), and sspmod_metarefresh_MetaLoader\writeMetadataFiles().

+ Here is the caller graph for this function:

◆ isErrorMasked()

static SimpleSAML\Logger::isErrorMasked (   $errno)
static

Evaluate whether errors of a certain error level are masked or not.

Parameters
int$errnoThe level of the error to check.
Returns
bool True if the error is masked, false otherwise.

Definition at line 293 of file Logger.php.

294 {
295 return ($errno & self::$logMask) || !($errno & error_reporting());
296 }

◆ log()

static SimpleSAML\Logger::log (   $level,
  $string,
  $statsLog = false 
)
staticprivate

Definition at line 396 of file Logger.php.

397 {
398 if (self::$loggingHandler === false) {
399 // some error occurred while initializing logging
400 self::defer($level, $string, $statsLog);
401 return;
402 } elseif (php_sapi_name() === 'cli' || defined('STDIN')) {
403 // we are being executed from the CLI, nowhere to log
404 if (is_null(self::$loggingHandler)) {
405 self::createLoggingHandler('SimpleSAML\Logger\StandardErrorLoggingHandler');
406 }
407 $_SERVER['REMOTE_ADDR'] = "CLI";
408 if (self::$trackid === self::NO_TRACKID) {
409 self::$trackid = 'CL'.bin2hex(openssl_random_pseudo_bytes(4));
410 }
411 } elseif (self::$loggingHandler === null) {
412 // Initialize logging
414
415 if (!empty(self::$earlyLog)) {
416 // output messages which were logged before we properly initialized logging
417 foreach (self::$earlyLog as $msg) {
418 self::log($msg['level'], $msg['string'], $msg['statsLog']);
419 }
420 }
421 }
422
423 if (self::$captureLog) {
424 $ts = microtime(true);
425 $msecs = (int) (($ts - (int) $ts) * 1000);
426 $ts = gmdate('H:i:s', $ts).sprintf('.%03d', $msecs).'Z';
427 self::$capturedLog[] = $ts.' '.$string;
428 }
429
430 if (self::$logLevel >= $level || $statsLog) {
431 if (is_array($string)) {
432 $string = implode(",", $string);
433 }
434
435 $formats = array('%trackid', '%msg', '%srcip', '%stat');
436 $replacements = array(self::$trackid, $string, $_SERVER['REMOTE_ADDR']);
437
438 $stat = '';
439 if ($statsLog) {
440 $stat = 'STAT ';
441 }
442 array_push($replacements, $stat);
443
444 if (self::$trackid === self::NO_TRACKID && !self::$shuttingDown) {
445 // we have a log without track ID and we are not still shutting down, so defer logging
446 self::defer($level, $string, $statsLog);
447 return;
448 } elseif (self::$trackid === self::NO_TRACKID) {
449 // shutting down without a track ID, prettify it
450 array_shift($replacements);
451 array_unshift($replacements, 'N/A');
452 }
453
454 // we either have a track ID or we are shutting down, so just log the message
455 $string = str_replace($formats, $replacements, self::$format);
456 self::$loggingHandler->log($level, $string);
457 }
458 }
static createLoggingHandler($handler=null)
Definition: Logger.php:352
static defer($level, $message, $stats)
Defer a message for later logging.
Definition: Logger.php:339
$formats
Definition: date.php:77
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']

References $_SERVER, $format, $formats, and defined.

◆ maskErrors()

static SimpleSAML\Logger::maskErrors (   $mask)
static

Disable error reporting for the given log levels.

Every call to this function must be followed by a call to popErrorMask().

Parameters
int$maskThe log levels that should be masked.

Definition at line 306 of file Logger.php.

307 {
308 assert('is_int($mask)');
309
310 $currentEnabled = error_reporting();
311 self::$logLevelStack[] = array($currentEnabled, self::$logMask);
312
313 $currentEnabled &= ~$mask;
314 error_reporting($currentEnabled);
315 self::$logMask |= $mask;
316 }
$mask
Definition: example_042.php:90

References $mask.

Referenced by SimpleSAML\Utils\Time\initTimezone(), SimpleSAML\Utils\Config\Metadata\isHiddenFromDiscovery(), and SimpleSAML_Utilities\maskErrors().

+ Here is the caller graph for this function:

◆ notice()

static SimpleSAML\Logger::notice (   $string)
static

Definition at line 190 of file Logger.php.

191 {
192 self::log(self::NOTICE, $string);
193 }

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().

+ Here is the caller graph for this function:

◆ popErrorMask()

static SimpleSAML\Logger::popErrorMask ( )
static

Pop an error mask.

This function restores the previous error mask.

Definition at line 324 of file Logger.php.

325 {
326 $lastMask = array_pop(self::$logLevelStack);
327 error_reporting($lastMask[0]);
328 self::$logMask = $lastMask[1];
329 }

Referenced by SimpleSAML\Utils\Time\initTimezone(), SimpleSAML\Utils\Config\Metadata\isHiddenFromDiscovery(), and SimpleSAML_Utilities\popErrorMask().

+ Here is the caller graph for this function:

◆ setCaptureLog()

static SimpleSAML\Logger::setCaptureLog (   $val = true)
static

Definition at line 235 of file Logger.php.

236 {
237 self::$captureLog = $val;
238 }

◆ setTrackId()

static SimpleSAML\Logger::setTrackId (   $trackId)
static

Set the track identifier to use in all logs.

Parameters
$trackIdstring The track identifier to use during this session.

Definition at line 255 of file Logger.php.

256 {
257 self::$trackid = $trackId;
258 }

Referenced by SimpleSAML_Session\__construct(), and SimpleSAML_Session\load().

+ Here is the caller graph for this function:

◆ stats()

static SimpleSAML\Logger::stats (   $string)
static

Definition at line 224 of file Logger.php.

225 {
226 self::log(self::NOTICE, $string, true);
227 }

Referenced by sspmod_core_Auth_UserPassBase\handleLogin(), sspmod_consent_Auth_Process_Consent\process(), sspmod_core_Auth_Process_StatisticsWithAttribute\process(), and sspmod_saml_IdP_SAML2\receiveLogoutMessage().

+ Here is the caller graph for this function:

◆ warning()

static SimpleSAML\Logger::warning (   $string)
static

Definition at line 179 of file Logger.php.

180 {
181 self::log(self::WARNING, $string);
182 }

Referenced by SimpleSAML\Module\core\Auth\Process\AttributeValueMap\__construct(), SimpleSAML_Auth_LDAP\__construct(), SimpleSAML\Locale\Translate\__construct(), SimpleSAML_Utilities\_doRedirect(), sspmod_consent_Consent_Store_Cookie\_verify(), SimpleSAML_Metadata_SAMLBuilder\addMetadata(), SimpleSAML_Auth_ProcessingChain\addUserID(), SimpleSAML\Module\autoloadPSR0(), 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(), 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_MetaDataStorageHandlerSerialize\getMetaData(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\getMetadataSet(), SimpleSAML_Metadata_MetaDataStorageHandlerSerialize\getMetadataSets(), SimpleSAML\Metadata\Sources\MDQ\getParsedSet(), SimpleSAML_Session\getSession(), sspmod_saml_Auth_Process_AttributeNameID\getValue(), sspmod_saml_Auth_Process_PersistentNameID\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_ScopeFromAttribute\process(), sspmod_ldap_Auth_Process_AttributeAddFromLDAP\process(), SimpleSAML\Module\saml\Auth\Process\FilterScopes\process(), sspmod_authX509_Auth_Process_ExpiryWarning\process(), sspmod_cdc_Auth_Process_CDC\process(), sspmod_core_Auth_Process_WarnShortSSOInterval\process(), sspmod_expirycheck_Auth_Process_ExpiryDate\process(), sspmod_saml_BaseNameIDGenerator\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(), statistics_hook_cron(), SimpleSAML\Locale\Translate\t(), temporaryLoader(), and SAML2\Compat\Ssp\Logger\warning().

+ Here is the caller graph for this function:

Field Documentation

◆ $capturedLog

SimpleSAML\Logger::$capturedLog = array()
staticprivate

Definition at line 36 of file Logger.php.

◆ $captureLog

SimpleSAML\Logger::$captureLog = false
staticprivate

Definition at line 31 of file Logger.php.

◆ $earlyLog

SimpleSAML\Logger::$earlyLog = array()
staticprivate

Definition at line 43 of file Logger.php.

◆ $format

SimpleSAML\Logger::$format = '%date{%b %d %H:%M:%S} %process %level %stat[%trackid] %msg'
staticprivate

Definition at line 104 of file Logger.php.

◆ $loggingHandler

SimpleSAML\Logger::$loggingHandler = null
staticprivate

Definition at line 21 of file Logger.php.

◆ $logLevel

SimpleSAML\Logger::$logLevel = null
staticprivate

Definition at line 26 of file Logger.php.

◆ $logLevelStack

SimpleSAML\Logger::$logLevelStack = array()
staticprivate

Definition at line 52 of file Logger.php.

◆ $logMask

SimpleSAML\Logger::$logMask = 0
staticprivate

Definition at line 61 of file Logger.php.

◆ $shutdownRegistered

SimpleSAML\Logger::$shutdownRegistered = false
staticprivate

Definition at line 111 of file Logger.php.

◆ $shuttingDown

SimpleSAML\Logger::$shuttingDown = false
staticprivate

Definition at line 118 of file Logger.php.

◆ $trackid

SimpleSAML\Logger::$trackid = self::NO_TRACKID
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 74 of file Logger.php.

◆ ALERT

const SimpleSAML\Logger::ALERT = 1

Definition at line 121 of file Logger.php.

◆ CRIT

const SimpleSAML\Logger::CRIT = 2

Definition at line 122 of file Logger.php.

◆ DEBUG

const SimpleSAML\Logger::DEBUG = 7

Definition at line 127 of file Logger.php.

◆ EMERG

const SimpleSAML\Logger::EMERG = 0

Definition at line 120 of file Logger.php.

◆ ERR

const SimpleSAML\Logger::ERR = 3

Definition at line 123 of file Logger.php.

◆ INFO

const SimpleSAML\Logger::INFO = 6

Definition at line 126 of file Logger.php.

◆ NO_TRACKID

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 68 of file Logger.php.

◆ NOTICE

const SimpleSAML\Logger::NOTICE = 5

Definition at line 125 of file Logger.php.

◆ WARNING

const SimpleSAML\Logger::WARNING = 4

Definition at line 124 of file Logger.php.


The documentation for this class was generated from the following file: