Laravel command logger package

Let me introduce our new laravel package for logging console commands.

It was developed specially for our Tenantcloud project. It is rather simple but at the same time really useful.

In our development process we faced with the problem of many cron jobs and console commands. Some of them were executing for a long time and we could not debug it. So we created simple package for this purpose.

To install it simply type:

composer require tenantcloud/command-logger

And add CommandLoggerServiceProvider to your config/app.php file.

By default it saves log information into Database and Log files. So you need to run migration right after that.

You can change table name using config and disable or enable channel. Also you can write your own channels.

Log information includes:

Example of DB log

Under the hood it uses Illuminate\Console\Events\CommandFinished event. It was added in Laravel 5.5 version via PR.

Do your lara well :) and contribute to open-source!



CTO at TenantCloud

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store