You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

1 year ago
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 日志设置
  4. // +----------------------------------------------------------------------
  5. return [
  6. // 默认日志记录通道
  7. 'default' => env('log.channel', 'file'),
  8. // 日志记录级别
  9. 'level' => [],
  10. // 日志类型记录的通道 ['error'=>'email',...]
  11. 'type_channel' => [],
  12. // 关闭全局日志写入
  13. 'close' => false,
  14. // 全局日志处理 支持闭包
  15. 'processor' => null,
  16. // 日志通道列表
  17. 'channels' => [
  18. 'file' => [
  19. // 日志记录方式
  20. 'type' => 'File',
  21. // 日志保存目录
  22. 'path' => '',
  23. // 单文件日志写入
  24. 'single' => false,
  25. // 独立日志级别
  26. 'apart_level' => [],
  27. // 最大日志文件数量
  28. 'max_files' => 0,
  29. // 使用JSON格式记录
  30. 'json' => false,
  31. // 日志处理
  32. 'processor' => null,
  33. // 关闭通道日志写入
  34. 'close' => false,
  35. // 日志输出格式化
  36. 'format' => '[%s][%s] %s',
  37. // 是否实时写入
  38. 'realtime_write' => false,
  39. ],
  40. // 其它日志通道配置
  41. ],
  42. ];