mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-05 12:38:47 +08:00
debug toolbar refactoring.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user