新版订单消耗系统

log-viewer.php 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. use Arcanedev\LogViewer\Contracts\Utilities\Filesystem;
  3. return [
  4. /* -----------------------------------------------------------------
  5. | Log files storage path
  6. | -----------------------------------------------------------------
  7. */
  8. 'storage-path' => storage_path('logs'),
  9. /* -----------------------------------------------------------------
  10. | Log files pattern
  11. | -----------------------------------------------------------------
  12. */
  13. 'pattern' => [
  14. 'prefix' => Filesystem::PATTERN_PREFIX, // 'laravel-'
  15. 'date' => Filesystem::PATTERN_DATE, // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
  16. 'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
  17. ],
  18. /* -----------------------------------------------------------------
  19. | Locale
  20. | -----------------------------------------------------------------
  21. | Supported locales :
  22. | 'auto', 'ar', 'bg', 'de', 'en', 'es', 'et', 'fa', 'fr', 'hu', 'hy', 'id', 'it', 'ja', 'ko', 'nl',
  23. | 'pl', 'pt-BR', 'ro', 'ru', 'sv', 'th', 'tr', 'zh-TW', 'zh'
  24. */
  25. 'locale' => 'auto',
  26. /* -----------------------------------------------------------------
  27. | Route settings
  28. | -----------------------------------------------------------------
  29. */
  30. 'route' => [
  31. 'enabled' => true,
  32. 'attributes' => [
  33. 'prefix' => 'log-viewer',
  34. 'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
  35. ],
  36. ],
  37. /* -----------------------------------------------------------------
  38. | Log entries per page
  39. | -----------------------------------------------------------------
  40. | This defines how many log entries are displayed per page.
  41. */
  42. 'per-page' => 30,
  43. /* -----------------------------------------------------------------
  44. | LogViewer's Facade
  45. | -----------------------------------------------------------------
  46. */
  47. 'facade' => 'LogViewer',
  48. /* -----------------------------------------------------------------
  49. | Download settings
  50. | -----------------------------------------------------------------
  51. */
  52. 'download' => [
  53. 'prefix' => 'laravel-',
  54. 'extension' => 'log',
  55. ],
  56. /* -----------------------------------------------------------------
  57. | Menu settings
  58. | -----------------------------------------------------------------
  59. */
  60. 'menu' => [
  61. 'filter-route' => 'log-viewer::logs.filter',
  62. 'icons-enabled' => true,
  63. ],
  64. /* -----------------------------------------------------------------
  65. | Icons
  66. | -----------------------------------------------------------------
  67. */
  68. 'icons' => [
  69. /**
  70. * Font awesome >= 4.3
  71. * http://fontawesome.io/icons/
  72. */
  73. 'all' => 'fa fa-fw fa-list', // http://fontawesome.io/icon/list/
  74. 'emergency' => 'fa fa-fw fa-bug', // http://fontawesome.io/icon/bug/
  75. 'alert' => 'fa fa-fw fa-bullhorn', // http://fontawesome.io/icon/bullhorn/
  76. 'critical' => 'fa fa-fw fa-heartbeat', // http://fontawesome.io/icon/heartbeat/
  77. 'error' => 'fa fa-fw fa-times-circle', // http://fontawesome.io/icon/times-circle/
  78. 'warning' => 'fa fa-fw fa-exclamation-triangle', // http://fontawesome.io/icon/exclamation-triangle/
  79. 'notice' => 'fa fa-fw fa-exclamation-circle', // http://fontawesome.io/icon/exclamation-circle/
  80. 'info' => 'fa fa-fw fa-info-circle', // http://fontawesome.io/icon/info-circle/
  81. 'debug' => 'fa fa-fw fa-life-ring', // http://fontawesome.io/icon/life-ring/
  82. ],
  83. /* -----------------------------------------------------------------
  84. | Colors
  85. | -----------------------------------------------------------------
  86. */
  87. 'colors' => [
  88. 'levels' => [
  89. 'empty' => '#D1D1D1',
  90. 'all' => '#8A8A8A',
  91. 'emergency' => '#B71C1C',
  92. 'alert' => '#D32F2F',
  93. 'critical' => '#F44336',
  94. 'error' => '#FF5722',
  95. 'warning' => '#FF9100',
  96. 'notice' => '#4CAF50',
  97. 'info' => '#1976D2',
  98. 'debug' => '#90CAF9',
  99. ],
  100. ],
  101. /* -----------------------------------------------------------------
  102. | Strings to highlight in stack trace
  103. | -----------------------------------------------------------------
  104. */
  105. 'highlight' => [
  106. '^#\d+',
  107. '^Stack trace:',
  108. ],
  109. ];