ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 13 of file Logger.php.

Member Function Documentation

◆ alert()

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

Definition at line 155 of file Logger.php.

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

156  {
157  self::log(self::ALERT, $string);
158  }
+ Here is the caller graph for this function:

◆ createLoggingHandler()

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

Definition at line 350 of file Logger.php.

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

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

◆ critical()

static SimpleSAML\Logger::critical (   $string)
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().

145  {
146  self::log(self::CRIT, $string);
147  }
+ Here is the caller graph for this function:

◆ debug()

static SimpleSAML\Logger::debug (   $string)
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().

212  {
213  self::log(self::DEBUG, $string);
214  }
const DEBUG
+ 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 337 of file Logger.php.

References $message, and Sabre\VObject\$stats.

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

◆ emergency()

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

Definition at line 133 of file Logger.php.

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

134  {
135  self::log(self::EMERG, $string);
136  }
+ Here is the caller graph for this function:

◆ error()

static SimpleSAML\Logger::error (   $string)
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().

167  {
168  self::log(self::ERR, $string);
169  }
+ 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 266 of file Logger.php.

References $s, and SimpleSAML_Session\getSessionFromRequest().

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

◆ getCapturedLog()

static SimpleSAML\Logger::getCapturedLog ( )
static

Get the captured log.

Definition at line 242 of file Logger.php.

243  {
244  return self::$capturedLog;
245  }

◆ info()

static SimpleSAML\Logger::info (   $string)
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().

200  {
201  self::log(self::INFO, $string);
202  }
+ 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 291 of file Logger.php.

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

◆ log()

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

Definition at line 394 of file Logger.php.

References $_SERVER, $format, and $formats.

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

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

References $mask.

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

305  {
306  assert(is_int($mask));
307 
308  $currentEnabled = error_reporting();
309  self::$logLevelStack[] = array($currentEnabled, self::$logMask);
310 
311  $currentEnabled &= ~$mask;
312  error_reporting($currentEnabled);
313  self::$logMask |= $mask;
314  }
$mask
Definition: example_042.php:90
+ Here is the caller graph for this function:

◆ notice()

static SimpleSAML\Logger::notice (   $string)
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().

189  {
190  self::log(self::NOTICE, $string);
191  }
+ 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 322 of file Logger.php.

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

323  {
324  $lastMask = array_pop(self::$logLevelStack);
325  error_reporting($lastMask[0]);
326  self::$logMask = $lastMask[1];
327  }
+ Here is the caller graph for this function:

◆ setCaptureLog()

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

Definition at line 233 of file Logger.php.

234  {
235  self::$captureLog = $val;
236  }

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

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

254  {
255  self::$trackid = $trackId;
256  }
+ Here is the caller graph for this function:

◆ stats()

static SimpleSAML\Logger::stats (   $string)
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().

223  {
224  self::log(self::NOTICE, $string, true);
225  }
+ Here is the caller graph for this function:

◆ warning()

static SimpleSAML\Logger::warning (   $string)
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().

178  {
179  self::log(self::WARNING, $string);
180  }
+ Here is the caller graph for this function:

Field Documentation

◆ $capturedLog

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

Definition at line 34 of file Logger.php.

◆ $captureLog

SimpleSAML\Logger::$captureLog = false
staticprivate

Definition at line 29 of file Logger.php.

◆ $earlyLog

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

Definition at line 41 of file Logger.php.

◆ $format

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

Definition at line 102 of file Logger.php.

◆ $loggingHandler

SimpleSAML\Logger::$loggingHandler = null
staticprivate

Definition at line 19 of file Logger.php.

◆ $logLevel

SimpleSAML\Logger::$logLevel = null
staticprivate

Definition at line 24 of file Logger.php.

◆ $logLevelStack

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

Definition at line 50 of file Logger.php.

◆ $logMask

SimpleSAML\Logger::$logMask = 0
staticprivate

Definition at line 59 of file Logger.php.

◆ $shutdownRegistered

SimpleSAML\Logger::$shutdownRegistered = false
staticprivate

Definition at line 109 of file Logger.php.

◆ $shuttingDown

SimpleSAML\Logger::$shuttingDown = false
staticprivate

Definition at line 116 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 72 of file Logger.php.

◆ ALERT

const SimpleSAML\Logger::ALERT = 1

Definition at line 119 of file Logger.php.

◆ CRIT

const SimpleSAML\Logger::CRIT = 2

Definition at line 120 of file Logger.php.

◆ DEBUG

const SimpleSAML\Logger::DEBUG = 7

Definition at line 125 of file Logger.php.

◆ EMERG

const SimpleSAML\Logger::EMERG = 0

Definition at line 118 of file Logger.php.

◆ ERR

const SimpleSAML\Logger::ERR = 3

Definition at line 121 of file Logger.php.

◆ INFO

const SimpleSAML\Logger::INFO = 6

Definition at line 124 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 66 of file Logger.php.

◆ NOTICE

const SimpleSAML\Logger::NOTICE = 5

Definition at line 123 of file Logger.php.

◆ WARNING

const SimpleSAML\Logger::WARNING = 4

Definition at line 122 of file Logger.php.


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