Skip to content

Commit

Permalink
fix travis.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wujunze committed Apr 23, 2018
1 parent 77d73a6 commit 9ab11df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,12 @@ public function log($level, $message, array $context = array())
SeasLog::log($level, $message, $context);
}

/**
* @param string $basePath
*/
public function setBasePath(string $basePath)
{
SeasLog::setBasePath($basePath);
}

}
4 changes: 3 additions & 1 deletion tests/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class LoggerTest extends TestCase
* @return Logger
*/
public function init () {
return new Logger();
$logger = new Logger();
$logger->setBasePath('/tmp/seaslogger');
return $logger;
}

public function testEmergency() {
Expand Down

0 comments on commit 9ab11df

Please sign in to comment.