|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +use Opcodes\LogViewer\Enums\FolderSortingMethod; |
| 4 | +use Opcodes\LogViewer\Enums\SortingOrder; |
| 5 | +use Opcodes\LogViewer\Enums\Theme; |
| 6 | + |
3 | 7 | return [ |
4 | 8 |
|
5 | 9 | /* |
|
241 | 245 | */ |
242 | 246 |
|
243 | 247 | 'per_page_options' => [10, 25, 50, 100, 250, 500], |
| 248 | + |
| 249 | + /* |
| 250 | + |-------------------------------------------------------------------------- |
| 251 | + | Default settings for Log Viewer |
| 252 | + |-------------------------------------------------------------------------- |
| 253 | + | These settings determine the default behaviour of Log Viewer. Many of |
| 254 | + | these can be persisted for the user in their browser's localStorage, |
| 255 | + | if the `use_local_storage` option is set to true. |
| 256 | + | |
| 257 | + */ |
| 258 | + |
| 259 | + 'defaults' => [ |
| 260 | + |
| 261 | + // Whether to use browser's localStorage to store user preferences. |
| 262 | + // If true, user preferences saved in the browser will take precedence over the defaults below. |
| 263 | + 'use_local_storage' => true, |
| 264 | + |
| 265 | + // Method to sort the folders. Other options: `Alphabetical`, `ModifiedTime` |
| 266 | + 'folder_sorting_method' => FolderSortingMethod::ModifiedTime, |
| 267 | + |
| 268 | + // Order to sort the folders. Other options: `Ascending`, `Descending` |
| 269 | + 'folder_sorting_order' => SortingOrder::Descending, |
| 270 | + |
| 271 | + // Order to sort the logs. Other options: `Ascending`, `Descending` |
| 272 | + 'log_sorting_order' => SortingOrder::Descending, |
| 273 | + |
| 274 | + // Number of results per page. Must be one of the above `per_page_options` values |
| 275 | + 'per_page' => 25, |
| 276 | + |
| 277 | + // Color scheme for the Log Viewer. Other options: `System`, `Light`, `Dark` |
| 278 | + 'theme' => Theme::System, |
| 279 | + |
| 280 | + // Whether to enable `Shorter Stack Traces` option by default |
| 281 | + 'shorter_stack_traces' => false, |
| 282 | + |
| 283 | + ], |
| 284 | + |
| 285 | + /* |
| 286 | + |-------------------------------------------------------------------------- |
| 287 | + | Root folder prefix |
| 288 | + |-------------------------------------------------------------------------- |
| 289 | + | The prefix for log files inside Laravel's `storage/logs` folder. |
| 290 | + | Log Viewer does not show the full path to these files in the UI, |
| 291 | + | but only the filename prefixed with this value. |
| 292 | + | |
| 293 | + */ |
| 294 | + |
| 295 | + 'root_folder_prefix' => 'root', |
244 | 296 | ]; |
0 commit comments