debug toolbar refactoring.

This commit is contained in:
Qiang Xue
2013-07-06 08:05:02 -04:00
parent b6ffa7c93e
commit 840a84db5c
6 changed files with 15 additions and 36 deletions

View File

@@ -129,13 +129,6 @@ class Logger extends Component
*/
public $targets = array();
/**
* @var string
*/
private $_tag;
/**
* Initializes the logger by registering [[flush()]] as a shutdown function.
*/
@@ -196,25 +189,6 @@ class Logger extends Component
$this->messages = array();
}
/**
* @return string a tag that uniquely identifies the current request.
*/
public function getTag()
{
if ($this->_tag === null) {
$this->_tag = date('Ymd-His', microtime(true));
}
return $this->_tag;
}
/**
* @param string $tag a tag that uniquely identifies the current request.
*/
public function setTag($tag)
{
$this->_tag = $tag;
}
/**
* Returns the total elapsed time since the start of the current request.
* This method calculates the difference between now and the timestamp