Skip to content

Commit

Permalink
3.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Jan 15, 2019
1 parent 99c410f commit c0d6849
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,17 @@ public function logWithLocation(string $str,$logCategory = 'default',int $timest
return $this->log($str,$logCategory);
}

public function console(string $str, $category = null, $saveLog = true):?string
public function console(string $str, $category = 'console', $saveLog = true):?string
{
// TODO: Implement console() method.
$str = $this->logger->console($str,$category,$saveLog);
return $str;
$final = $this->logger->console($str,$category,false);
if($saveLog){
$this->log($str,$category);
}
return $final;
}

public function consoleWithLocation(string $str, $category = null, $saveLog = true):?string
public function consoleWithLocation(string $str, $category = 'console', $saveLog = true):?string
{
// TODO: Implement console() method.
$location = $this->getLocation();
Expand Down

0 comments on commit c0d6849

Please sign in to comment.