2017 © Pedro Peláez
 

library laravel-tail

Easily tail the application log

image

spatie/laravel-tail

Easily tail the application log

  • Monday, May 14, 2018
  • by Spatie
  • Repository
  • 11 Watchers
  • 318 Stars
  • 232,469 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 23 Forks
  • 0 Open issues
  • 22 Versions
  • 7 % Grown

The README.md

Easily tail your logs

Latest Version Software License Total Downloads, (*1)

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

To tail the log you can use this command:, (*3)

php artisan tail

It can also tail logs on other environments:, (*4)

php artisan tail production

Support us

, (*5)

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., (*6)

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., (*7)

Installation

You can install the package via composer:, (*8)

``` bash composer require spatie/laravel-tail, (*9)


You can publish the config file with: ```bash php artisan vendor:publish --provider="Spatie\Tail\TailServiceProvider"

This is the contents of the file that will be published at config/tail.php:, (*10)

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:, (*11)

php artisan tail

You can start the output with displaying the last lines in the log by using the lines-option., (*12)

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., (*13)

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., (*14)

php artisan tail --clear

Should you wish to filter the log to return only certain keywords then you can also use the grep feature., (*15)

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., (*16)

After that you can tail that logs of an environment like this, (*17)

php artisan tail production

You can also use the --clear, --file, and --lines options described above., (*18)

Changelog

Please see CHANGELOG for more information what has changed recently., (*19)

Contributing

Please see CONTRIBUTING for details., (*20)

Security

If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker., (*21)

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., (*22)

License

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

The Versions

14/05 2018

dev-master

9999999-dev https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

12/04 2018

3.1.0

3.1.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

12/04 2018

dev-clear-support

dev-clear-support https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

05/04 2018

dev-analysis-876Nw0

dev-analysis-876Nw0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

07/02 2018

3.0.1

3.0.1.0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

07/02 2018

3.0.0

3.0.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

30/08 2017

2.0.1

2.0.1.0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

30/08 2017

2.0.0

2.0.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log

  Sources   Download

MIT

The Requires

 

laravel log development tail laravel-tail

12/08 2017

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

laravel log tail laravel-tail

21/03 2017

1.4.2

1.4.2.0 https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

laravel log tail laravel-tail

17/03 2017

1.4.1

1.4.1.0 https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

laravel log tail laravel-tail

16/03 2017

1.4.0

1.4.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

laravel log tail laravel-tail

13/03 2017

1.3.0

1.3.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

laravel log tail laravel-tail

20/01 2017

1.2.0

1.2.0.0 https://github.com/spatie/laravel-tail

Easily tail the application log in Laravel applications

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

20/01 2017

1.1.5

1.1.5.0 https://github.com/spatie/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

19/01 2017

1.1.4

1.1.4.0 https://github.com/spatie/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

26/11 2016

1.1.3

1.1.3.0 https://github.com/spatie/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

11/10 2015

1.1.2

1.1.2.0 https://github.com/spatie/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

22/05 2015

1.1.1

1.1.1.0 https://github.com/spatie/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

09/03 2015

1.1.0

1.1.0.0 https://github.com/freekmurze/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

10/02 2015

1.0.1

1.0.1.0 https://github.com/freekmurze/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail

10/02 2015

1.0.0

1.0.0.0 https://github.com/freekmurze/laravel-tail

The missing tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel-tail