|
| | __construct ($stream, $level=Mustache_Logger::ERROR) |
| |
|
| __destruct () |
| | Close stream resources.
|
| |
| | alert ($message, array $context=array()) |
| | Action must be taken immediately.
|
| |
| | critical ($message, array $context=array()) |
| | Critical conditions.
|
| |
| | debug ($message, array $context=array()) |
| | Detailed debug information.
|
| |
| | emergency ($message, array $context=array()) |
| | System is unusable.
|
| |
| | error ($message, array $context=array()) |
| | Runtime errors that do not require immediate action but should typically be logged and monitored.
|
| |
| | getLevel () |
| | Get the current minimum logging level.
|
| |
| | info ($message, array $context=array()) |
| | Interesting events.
|
| |
| | log ($level, $message, array $context=array()) |
| | Logs with an arbitrary level.
|
| |
| | notice ($message, array $context=array()) |
| | Normal but significant events.
|
| |
| | setLevel ($level) |
| | Set the minimum logging level.
|
| |
| | warning ($message, array $context=array()) |
| | Exceptional occurrences that are not errors.
|
| |
|
| | writeLog ($level, $message, array $context=array()) |
| | Write a record to the log.
|
| |
|
| static | formatLine ($level, $message, array $context=array()) |
| | Format a log line for output.
|
| |
| static | getLevelName ($level) |
| | Gets the name of the logging level.
|
| |
| static | interpolateMessage ($message, array $context=array()) |
| | Interpolate context values into the message placeholders.
|
| |
|
|
| $level |
| |
|
| $stream = null |
| |
|
| $url = null |
| |
◆ __construct()
| Mustache_Logger_StreamLogger::__construct |
( |
| $stream, |
|
|
| $level = Mustache_Logger::ERROR ) |
- Exceptions
-
| InvalidArgumentException | if the logging level is unknown |
- Parameters
-
| resource | string | $stream | Resource instance or URL |
| int | $level | The minimum logging level at which this handler will be triggered |
◆ alert()
| Mustache_Logger_AbstractLogger::alert |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ critical()
| Mustache_Logger_AbstractLogger::critical |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Critical conditions.
Example: Application component unavailable, unexpected exception.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ debug()
| Mustache_Logger_AbstractLogger::debug |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Detailed debug information.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ emergency()
| Mustache_Logger_AbstractLogger::emergency |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
System is unusable.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ error()
| Mustache_Logger_AbstractLogger::error |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Runtime errors that do not require immediate action but should typically be logged and monitored.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ formatLine()
| static Mustache_Logger_StreamLogger::formatLine |
( |
| $level, |
|
|
| $message, |
|
|
array | $context = array() ) |
|
staticprotected |
Format a log line for output.
- Parameters
-
| int | $level | The logging level |
| string | $message | The log message |
| array | $context | The log context |
- Return values
-
◆ getLevel()
| Mustache_Logger_StreamLogger::getLevel |
( |
| ) |
|
Get the current minimum logging level.
- Return values
-
◆ getLevelName()
| static Mustache_Logger_StreamLogger::getLevelName |
( |
| $level | ) |
|
|
staticprotected |
Gets the name of the logging level.
- Exceptions
-
| InvalidArgumentException | if the logging level is unknown |
- Parameters
-
- Return values
-
◆ info()
| Mustache_Logger_AbstractLogger::info |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Interesting events.
Example: User logs in, SQL logs.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ interpolateMessage()
| static Mustache_Logger_StreamLogger::interpolateMessage |
( |
| $message, |
|
|
array | $context = array() ) |
|
staticprotected |
Interpolate context values into the message placeholders.
- Parameters
-
| string | $message | |
| array | $context | |
- Return values
-
◆ log()
| Mustache_Logger_StreamLogger::log |
( |
| $level, |
|
|
| $message, |
|
|
array | $context = array() ) |
Logs with an arbitrary level.
- Exceptions
-
- Parameters
-
| mixed | $level | |
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ notice()
| Mustache_Logger_AbstractLogger::notice |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Normal but significant events.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ setLevel()
| Mustache_Logger_StreamLogger::setLevel |
( |
| $level | ) |
|
Set the minimum logging level.
- Exceptions
-
- Parameters
-
| int | $level | The minimum logging level which will be written |
◆ warning()
| Mustache_Logger_AbstractLogger::warning |
( |
| $message, |
|
|
array | $context = array() ) |
|
inherited |
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
- Parameters
-
| string | $message | |
| array | $context | |
Implements Mustache_Logger.
◆ writeLog()
| Mustache_Logger_StreamLogger::writeLog |
( |
| $level, |
|
|
| $message, |
|
|
array | $context = array() ) |
|
protected |
Write a record to the log.
- Exceptions
-
- Parameters
-
| int | $level | The logging level |
| string | $message | The log message |
| array | $context | The log context |
◆ $levels
| Mustache_Logger_StreamLogger::$levels |
|
staticprotected |
Initial value:= array(
self::DEBUG => 100,
self::INFO => 200,
self::NOTICE => 250,
self::WARNING => 300,
self::ERROR => 400,
self::CRITICAL => 500,
self::ALERT => 550,
self::EMERGENCY => 600,
)
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Logger/StreamLogger.php