protected function add($type, $msg, array $context)
	{
		if (!isset($context['attrName']) && isset($this->attrName))
		{
			$context['attrName'] = $this->attrName;
		}

		if (!isset($context['tag']) && isset($this->tag))
		{
			$context['tag'] = $this->tag;
		}

		$this->logs[] = [$type, $msg, $context];
	}
protected function add($type, $msg, array $context)
	{
		if (!isset($context['attrName']) && isset($this->attrName))
		{
			$context['attrName'] = $this->attrName;
		}

		if (!isset($context['tag']) && isset($this->tag))
		{
			$context['tag'] = $this->tag;
		}

		$this->logs[] = [$type, $msg, $context];
	}
protected function add ( $ type , $ msg , array $ context ) { if ( ! isset ( $ context [ 'attrName' ] ) && isset ( $ this -> attrName ) ) { $ context [ 'attrName' ] = $ this -> attrName ; } if ( ! isset ( $ context [ 'tag' ] ) && isset ( $ this -> tag ) ) { $ context [ 'tag' ] = $ this -> tag ; } $ this -> logs [ ] = [ $ type , $ msg , $ context ] ; }
Add a log entry

@param  string $type
@param  string $msg
@param  array  $context
@return void
Add a log entry