phpbb\log\log::enable PHP Method

enable() public method

{@inheritDoc}
public enable ( $type = '' )
    public function enable($type = '')
    {
        if (is_array($type)) {
            foreach ($type as $enable_type) {
                $this->enable($enable_type);
            }
            return;
        }
        if ($type == '' || $type == 'all') {
            $this->disabled_types = array();
            return;
        }
        unset($this->disabled_types[$type]);
    }