PHP 8.3.31
Preview: LoggerFactory.php Size: 652 B
/home/getspomw/royalsquad.us/vendor/laravel/pail/src/LoggerFactory.php

<?php

namespace Laravel\Pail;

use Monolog\Formatter\JsonFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Level;
use Monolog\Logger;
use Psr\Log\LoggerInterface;

class LoggerFactory
{
    /**
     * Creates a new instance of the logger factory.
     */
    public function __construct(
        protected File $file,
    ) {
        //
    }

    /**
     * Creates a new instance of the logger.
     */
    public function create(): LoggerInterface
    {
        $handler = new StreamHandler($this->file->__toString(), Level::Debug);
        $handler->setFormatter(new JsonFormatter);

        return new Logger('pail', [$handler]);
    }
}

Directory Contents

Dirs: 5 × Files: 8

Name Size Perms Modified Actions
Console DIR
- drwxrwxrwx 2025-09-17 06:53:03
Edit Download
Contracts DIR
- drwxrwxrwx 2025-09-17 06:53:03
Edit Download
Guards DIR
- drwxrwxrwx 2025-09-17 06:53:03
Edit Download
Printers DIR
- drwxrwxrwx 2026-04-21 18:27:07
Edit Download
- drwxrwxrwx 2025-09-17 06:53:03
Edit Download
960 B lrw-r--r-- 2026-04-25 12:17:06
Edit Download
1.86 KB lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
540 B lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
4.01 KB lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
652 B lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
2.05 KB lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
2.37 KB lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
1.84 KB lrw-rw-rw- 2025-09-17 06:53:03
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).