1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

feat(core): add new tmp constant #470

This commit is contained in:
Awilum
2020-09-07 13:02:45 +03:00
parent 1cdf21aa83
commit 5875ac9ca9

View File

@@ -73,7 +73,7 @@ flextype()->container()['registry'] = static function () use ($registry) {
*/
flextype()->container()['logger'] = static function () {
$logger = new Logger('flextype');
$logger->pushHandler(new StreamHandler(PATH['logs'] . '/' . date('Y-m-d') . '.log'));
$logger->pushHandler(new StreamHandler(PATH['tmp'] . '/logs/' . date('Y-m-d') . '.log'));
return $logger;
};