All Projects → spatie → Laravel Tail

spatie / Laravel Tail

Licence: mit
An artisan command to tail your application logs

Projects that are alternatives of or similar to Laravel Tail

Laravel Artisan Dd
Quickly run some code via Artisan
Stars: ✭ 136 (-76.83%)
Mutual labels:  laravel, artisan, debug
Laravel Mailable Test
An artisan command to easily test mailables
Stars: ✭ 143 (-75.64%)
Mutual labels:  laravel, artisan, debug
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (-69.51%)
Mutual labels:  laravel, artisan, debug
laravel-live-tinker
Laravel tinker in your browser with code highlight
Stars: ✭ 51 (-91.31%)
Mutual labels:  debug, artisan
axios-curlirize
axios plugin converting requests to cURL commands, saving and logging them.
Stars: ✭ 152 (-74.11%)
Mutual labels:  log, debug
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (-95.91%)
Mutual labels:  log, debug
Laravel Link Checker
Check all links in a Laravel application
Stars: ✭ 253 (-56.9%)
Mutual labels:  laravel, artisan
WatsonSyslogServer
C# Syslog Server
Stars: ✭ 18 (-96.93%)
Mutual labels:  log, debug
TailLog
实时日志(tail log)查看监控客户端工具
Stars: ✭ 79 (-86.54%)
Mutual labels:  log, tail
state inspector
State change & method call logger. A debugging tool for instance variables and method calls.
Stars: ✭ 24 (-95.91%)
Mutual labels:  log, debug
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (-44.29%)
Mutual labels:  laravel, artisan
logs-monitor
An application like Linux tail for Windows. Using Windows FindFirstChangeNotification API to monitoring file changes.
Stars: ✭ 43 (-92.67%)
Mutual labels:  log, tail
tailor
Tailor, the library for tailing logs under logrotate, written in go.
Stars: ✭ 35 (-94.04%)
Mutual labels:  log, tail
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-97.1%)
Mutual labels:  log, debug
logtail
logtail is a log tailing utility, support tailing multiple commands output stream, transferring matching content to file/webhook(like dingtalk)
Stars: ✭ 33 (-94.38%)
Mutual labels:  log, tail
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-96.76%)
Mutual labels:  log, debug
Borgert Cms
Borgert is a CMS Open Source created with Laravel Framework 5.6
Stars: ✭ 298 (-49.23%)
Mutual labels:  laravel, log
Scout Extended
Scout Extended: The Full Power of Algolia in Laravel
Stars: ✭ 330 (-43.78%)
Mutual labels:  laravel, artisan
Laravel Activitylog
Log activity inside your Laravel app
Stars: ✭ 4,123 (+602.39%)
Mutual labels:  laravel, log
Laravel Cronless Schedule
Run the Laravel scheduler without relying on cron
Stars: ✭ 231 (-60.65%)
Mutual labels:  laravel, artisan

Easily tail your logs

Latest Version GitHub Workflow Status Software License Total Downloads

This package offers an artisan command to tail the application log. It supports daily and single logs on your local machine.

To tail the log you can use this command:

php artisan tail

It can also tail logs on other environments:

php artisan tail production

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require spatie/laravel-tail

You can publish the config file with:

php artisan vendor:publish --provider="Spatie\Tail\TailServiceProvider"

This is the contents of the file that will be published at config/tail.php:

return [
    'production' => [
        
        /*
         * The host that contains your logs.
         */
        'host' => env('TAIL_HOST_PRODUCTION', ''),

        /*
         * The user to be used to SSH to the server.
         */
        'user' => env('TAIL_USER_PRODUCTION', ''),

        /*
         * The path to the directory that contains your logs.
         */
        'log_directory' => env('TAIL_LOG_DIRECTORY_PRODUCTION', ''),

        /*
         * The filename of the log file that you want to tail.
         * Leave null to let the package automatically select the file.
         */
        'file' => env('TAIL_LOG_FILE_PRODUCTION', null),
        
    ],
];

Usage

To tail the local log you can use this command:

php artisan tail

You can start the output with displaying the last lines in the log by using the lines-option.

php artisan tail --lines=50

By default, the most-recently modified file in the directory will be used. You can specify the file that you would like to tail by using the file option.

php artisan tail --file="other-file.log"

It's also possible to fully clear the output buffer after each log item. This can be useful if you're only interested in the last log entry when debugging.

php artisan tail --clear

Should you wish to filter the log to return only certain keywords then you can also use the grep feature.

php artisan tail --grep="only display lines that contain this string"

Tailing remote logs

To tail remote logs, you must first specify values for host, user, log_directory, and file keys of an environment in the tail config file.

After that you can tail that logs of an environment like this

php artisan tail production

You can also use the --clear, --file, and --lines options described above.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

This package was created because the awesome tail command present in Laravel 4 was dropped in Laravel 5. The tail command from this package is equivalent to Laravel's old one minus the remote tailing features.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].