Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.idea/
/vendor/
node_modules/
npm-debug.log
Expand Down
23 changes: 0 additions & 23 deletions .gitignore copy

This file was deleted.

16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ php artisan logger-ui:install

You should also run the `migrate` command in order to create the table needed to store Logger UI's data:

Note : if you are using SingleStore, add `--singlestore=on` option.
Note : if you are using SingleStore Database, modify `--singlestore` option.

```sh
php artisan logger-ui:migrate
php artisan logger-ui:migrate --singlestore=off
```

## Setup Logger UI as default channel
Expand All @@ -32,8 +32,8 @@ In your `config/logging.php` file, add the following channel:
```php
'logger-ui' => [
'driver' => 'custom',
'path' => DBHandler::class,
'via' => DBLogger::class,
'path' => \FuryBee\LoggerUi\DBHandler::class,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'path' => \FuryBee\LoggerUi\DBHandler::class,
'via' => \FuryBee\LoggerUi\DBLogger::class,

L'utilisation du FQCN (Fully Qualified Class Name) améliore la clarté, mais assurez-vous que ces classes existent bien dans le namespace indiqué et qu'il n'y a pas de conflit avec d'autres classes portant le même nom. Sinon, cela pourrait causer des erreurs d'autoload ou des bugs d'exécution.

'via' => \FuryBee\LoggerUi\DBLogger::class,
'level' => 'debug',
],
```
Expand All @@ -46,7 +46,9 @@ LOG_CHANNEL=logger-ui

## Dashboard Authorization

Logger UI exposes a dashboard at the `/logger-ui` URI. Within your `app/Providers/LoggerUiServiceProvider.php` file, there is a gate method that controls access to the Logger UI dashboard. By default, all visitors are restricted. You should modify this gate as needed to grant access to your Logger UI dashboard:
Logger UI exposes a dashboard at the `/logger-ui` URI. Within your `app/Providers/LoggerUiServiceProvider.php` file, there is a gate method that controls access to the Logger UI dashboard.

By default, all guests are restricted. You should modify this gate as needed to grant access to your Logger UI dashboard:

```php
/**
Expand Down Expand Up @@ -107,7 +109,9 @@ If needed, you may update DB Connection and the Table where logger-ui will store

### Queue

If you are using a Queue Driver different of `sync`, you may update the Queue Configuraion. The Log Data will be sent by a Job. Otherwise, it will be sent in the request lifecycle.
If you are using a Queue Driver different of `sync`, you may update the Queue Configuration. Indeed, with sync driver, the log data will be sent in the request lifecycle, and it will slow down the server response time.

The log data may be sent by a Job.

```php
'queue' => [
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
],
"require": {
"php": "^7.3|^8.0",
"laravel/framework": "^6.0|^7.0|^8.0",
"symfony/yaml": "^4.3.4|^5.1.4"
"laravel/framework": "^6.0|^7.0|^8.0|^9.0",
"symfony/yaml": "^4.3.4|^5.1.4",
"ext-json": "*"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.0",
Expand Down
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/app.js": "/app.js?id=ad50c92658dc51f0fffb",
"/app.js": "/app.js?id=de284f4bfa8db3e33d4e",
"/app.css": "/app.css?id=280eed50d3a98c02b35e"
}
Loading