diff --git a/src/Logger.php b/src/Logger.php index 65caf6d..abe2953 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -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); + } } \ No newline at end of file diff --git a/tests/LoggerTest.php b/tests/LoggerTest.php index 14d1309..8fd187a 100644 --- a/tests/LoggerTest.php +++ b/tests/LoggerTest.php @@ -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() {