log.php 951 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<[email protected]>
  10. * @copyright walkor<[email protected]>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. return [
  15. 'default' => [
  16. 'handlers' => [
  17. [
  18. 'class' => Monolog\Handler\RotatingFileHandler::class,
  19. 'constructor' => [
  20. runtime_path() . '/logs/webman.log',
  21. Monolog\Logger::DEBUG,
  22. ],
  23. 'formatter' => [
  24. 'class' => Monolog\Formatter\LineFormatter::class,
  25. 'constructor' => [ null, 'Y-m-d H:i:s', true],
  26. ],
  27. ]
  28. ],
  29. ],
  30. ];