opcodesio / log-viewer

Fast and beautiful Log Viewer for Laravel
https://log-viewer.opcodes.io
MIT License
3.39k stars 237 forks source link

laravel-queue log file and laravel-schedule shown as empty though it's full #376

Closed mohamedds-12 closed 1 month ago

mohamedds-12 commented 1 month ago

laravel-queue log file and laravel-schedule shown as empty though it's full Package version : v3.10 Laravel version : v8

arukompas commented 1 month ago

hey @mohamedds-12 , can you share these log files, or at least 10 lines from the top of each of them?

mohamedds-12 commented 1 month ago

hey @mohamedds-12 , can you share these log files, or at least 10 lines from the top of each of them?

laravel-schedule.log :

Schedule worker started successfully.

[2024-02-25T13:08:00+01:00] Execution #2 output:
No scheduled commands are ready to run.

[2024-02-25T13:09:00+01:00] Execution #3 output:
No scheduled commands are ready to run.

[2024-02-25T13:10:00+01:00] Execution #4 output:
No scheduled commands are ready to run.

[2024-02-25T13:11:00+01:00] Execution #5 output:
No scheduled commands are ready to run.

[2024-02-25T13:12:00+01:00] Execution #6 output:
No scheduled commands are ready to run.

[2024-02-25T13:13:00+01:00] Execution #7 output:
No scheduled commands are ready to run.

[2024-02-25T13:14:00+01:00] Execution #8 output:
No scheduled commands are ready to run.

laravel-queue.log :

[2024-02-25 17:10:02][16884] Processing: App\Jobs\Participant\AddRecordToRegistrationLog
[2024-02-25 17:10:03][16885] Processing: App\Jobs\Participant\AddRecordToRegistrationLog
[2024-02-25 17:10:03][16886] Processing: App\Jobs\Participant\AddRecordToRegistrationLog
[2024-02-25 17:10:03][16886] Failed:     App\Jobs\Participant\AddRecordToRegistrationLog
[2024-02-25 17:12:45][16887] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16887] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16888] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16888] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16889] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16889] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16890] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16890] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16891] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16891] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16892] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16892] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16893] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16893] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16894] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16894] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16895] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16895] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16896] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16896] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16897] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16897] Processed:  App\Jobs\Event\CreateEventRegistrationLogFile
[2024-02-25 17:12:45][16898] Processing: App\Jobs\Event\CreateEventRegistrationLogFile
arukompas commented 1 month ago

hey @mohamedds-12

Thanks for these examples, helped a lot!

I have pushed an update, v3.10.1 which should help with the queue log. As for the Scheduler log, it's not currently supported, hence why nothing appears.

I plan on making an addition to the Log Viewer so it can view all logs, even unsupported, in plain text. This way you wouldn't have to switch away from Log Viewer to view certain log files.

Hope this helps!

mohamedds-12 commented 1 month ago

@arukompas Thanks a lot for the quick fix. It works. Appreciate it.