Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

LoggerInterface.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 2.90 KiB


001  <?php
002   
003  namespace Psr\Log;
004   
005  /**
006   * Describes a logger instance
007   *
008   * The message MUST be a string or object implementing __toString().
009   *
010   * The message MAY contain placeholders in the form: {foo} where foo
011   * will be replaced by the context data in key "foo".
012   *
013   * The context array can contain arbitrary data, the only assumption that
014   * can be made by implementors is that if an Exception instance is given
015   * to produce a stack trace, it MUST be in a key named "exception".
016   *
017   * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
018   * for the full interface specification.
019   */
020  interface LoggerInterface
021  {
022      /**
023       * System is unusable.
024       *
025       * @param string $message
026       * @param array $context
027       * @return null
028       */
029      public function emergency($message, array $context = array());
030   
031      /**
032       * Action must be taken immediately.
033       *
034       * Example: Entire website down, database unavailable, etc. This should
035       * trigger the SMS alerts and wake you up.
036       *
037       * @param string $message
038       * @param array $context
039       * @return null
040       */
041      public function alert($message, array $context = array());
042   
043      /**
044       * Critical conditions.
045       *
046       * Example: Application component unavailable, unexpected exception.
047       *
048       * @param string $message
049       * @param array $context
050       * @return null
051       */
052      public function critical($message, array $context = array());
053   
054      /**
055       * Runtime errors that do not require immediate action but should typically
056       * be logged and monitored.
057       *
058       * @param string $message
059       * @param array $context
060       * @return null
061       */
062      public function error($message, array $context = array());
063   
064      /**
065       * Exceptional occurrences that are not errors.
066       *
067       * Example: Use of deprecated APIs, poor use of an API, undesirable things
068       * that are not necessarily wrong.
069       *
070       * @param string $message
071       * @param array $context
072       * @return null
073       */
074      public function warning($message, array $context = array());
075   
076      /**
077       * Normal but significant events.
078       *
079       * @param string $message
080       * @param array $context
081       * @return null
082       */
083      public function notice($message, array $context = array());
084   
085      /**
086       * Interesting events.
087       *
088       * Example: User logs in, SQL logs.
089       *
090       * @param string $message
091       * @param array $context
092       * @return null
093       */
094      public function info($message, array $context = array());
095   
096      /**
097       * Detailed debug information.
098       *
099       * @param string $message
100       * @param array $context
101       * @return null
102       */
103      public function debug($message, array $context = array());
104   
105      /**
106       * Logs with an arbitrary level.
107       *
108       * @param mixed $level
109       * @param string $message
110       * @param array $context
111       * @return null
112       */
113      public function log($level, $message, array $context = array());
114  }
115