Namespace: \YooKassa\Common
- No constants found
Visibility | Name | Flag | Summary |
---|---|---|---|
public | __construct() | LoggerWrapper constructor. | |
public | alert() | Action must be taken immediately. | |
public | critical() | Critical conditions. | |
public | debug() | Detailed debug information. | |
public | emergency() | System is unusable. | |
public | error() | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
public | info() | Interesting events. | |
public | log() | Logs with an arbitrary level. | |
public | notice() | Normal but significant events. | |
public | warning() | Exceptional occurrences that are not errors. |
- File: lib/Common/LoggerWrapper.php
- Package: Default
- Class Hierarchy:
- \YooKassa\Common\LoggerWrapper
- Implements:
public __construct(object|callable $wrapped) : mixed
Summary
LoggerWrapper constructor.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
object OR callable |
wrapped |
Returns: mixed -
public alert(string $message, array $context = array()) : void
Summary
Action must be taken immediately.
Description
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public critical(string $message, array $context = array()) : void
Summary
Critical conditions.
Description
Example: Application component unavailable, unexpected exception.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public debug(string $message, array $context = array()) : void
Summary
Detailed debug information.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public emergency(string $message, array $context = array()) : void
Summary
System is unusable.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public error(string $message, array $context = array()) : void
Summary
Runtime errors that do not require immediate action but should typically be logged and monitored.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public info(string $message, array $context = array()) : void
Summary
Interesting events.
Description
Example: User logs in, SQL logs.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public log(mixed $level, string $message, array $context = array()) : void
Summary
Logs with an arbitrary level.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
mixed |
level | |
string |
message | |
array |
context |
Returns: void -
public notice(string $message, array $context = array()) : void
Summary
Normal but significant events.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
public warning(string $message, array $context = array()) : void
Summary
Exceptional occurrences that are not errors.
Description
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Details:
- Inherited From: \YooKassa\Common\LoggerWrapper
Type | Name | Description |
---|---|---|
string |
message | |
array |
context |
Returns: void -
This document was automatically generated from source code comments on 2022-03-22 using phpDocumentor
© 2022 YooMoney