Skip to content

Commit

Permalink
Update Logger.php
Browse files Browse the repository at this point in the history
update
  • Loading branch information
kai-xx committed Jan 18, 2022
1 parent 63bd2a2 commit 0807491
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@ private function levels(){
'emergency' => self::EMERGENCY
];
}
/**
* Get a log channel instance.
*
* @param string|null $channel
* @return \Psr\Log\LoggerInterface
*/
public function channel($channel = null)
{
return $this;
}

/**
* Get a log driver instance.
*
* @param string|null $driver
* @return \Psr\Log\LoggerInterface
*/
public function driver($driver = null)
{
return $this;
}


public static function getExecutionTime(){
if (is_null(static::$startTime)) static::$startTime = microtime(true);
$diff = microtime(true) - static::$startTime;
Expand Down

0 comments on commit 0807491

Please sign in to comment.