Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Protected Attributes
Zend_Log_Filter_Suppress Class Reference
Inheritance diagram for Zend_Log_Filter_Suppress:
Zend_Log_Filter_Abstract Zend_Log_Filter_Interface Zend_Log_FactoryInterface

Public Member Functions

 suppress ($suppress)
 
 accept ($event)
 

Static Public Member Functions

static factory ($config)
 

Protected Attributes

 $_accept = true
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Log_Filter_Abstract
static _parseConfig ($config)
 

Detailed Description

Definition at line 34 of file Suppress.php.

Member Function Documentation

◆ accept()

accept (   $event)

Returns TRUE to accept the message, FALSE to block it.

Parameters
array$eventevent data
Returns
boolean accepted?

Implements Zend_Log_Filter_Interface.

Definition at line 61 of file Suppress.php.

62  {
63  return $this->_accept;
64  }

◆ factory()

static factory (   $config)
static

Create a new instance of Zend_Log_Filter_Suppress

Parameters
array | Zend_Config$config
Returns
Zend_Log_Filter_Suppress
Exceptions
Zend_Log_Exception

Implements Zend_Log_FactoryInterface.

Definition at line 73 of file Suppress.php.

74  {
75  return new self();
76  }

◆ suppress()

suppress (   $suppress)

This is a simple boolean filter.

Call suppress(true) to suppress all log events. Call suppress(false) to accept all log events.

Parameters
boolean$suppressShould all log events be suppressed?
Returns
void

Definition at line 50 of file Suppress.php.

51  {
52  $this->_accept = (! $suppress);
53  }

Field Documentation

◆ $_accept

$_accept = true
protected

Definition at line 39 of file Suppress.php.


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