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.

44 lines
1.4 KiB

  1. <?php
  2. return [
  3. /**
  4. * Whether all SQL queries should be logged
  5. */
  6. 'log_queries' => env('SQL_LOG_QUERIES', true),
  7. /**
  8. * Whether artisan queries should be logged to separate files
  9. */
  10. 'log_console_to_separate_file' => env('SQL_LOG_SEPARATE_ARTISAN', false),
  11. /**
  12. * Whether slow SQL queries should be logged (you can log all queries and
  13. * also slow queries in separate file or you might to want log only slow
  14. * queries)
  15. */
  16. 'log_slow_queries' => env('SQL_LOG_SLOW_QUERIES', true),
  17. /**
  18. * Time of query (in milliseconds) when this query is considered as slow
  19. */
  20. 'slow_queries_min_exec_time' => env('SQL_SLOW_QUERIES_MIN_EXEC_TIME', 100),
  21. /**
  22. * Whether log (for all queries, not for slow queries) should be overridden.
  23. * It might be useful when you test some functionality and you want to
  24. * compare your queries (or number of queries) - be aware that when using
  25. * AJAX it will override your log file in each request
  26. */
  27. 'override_log' => env('SQL_LOG_OVERRIDE', false),
  28. /**
  29. * Directory where log files will be saved
  30. */
  31. 'directory' => storage_path(env('SQL_LOG_DIRECTORY', 'logs/sql')),
  32. /**
  33. * Whether execution time in log file should be displayed in seconds
  34. * (by default it's in milliseconds)
  35. */
  36. 'convert_to_seconds' => env('SQL_CONVERT_TIME_TO_SECONDS', false),
  37. ];