2017 © Pedro Peláez
 

library laravel5-tail

A tail command for Laravel 5

image

isbkch/laravel5-tail

A tail command for Laravel 5

  • Monday, May 23, 2016
  • by isbkch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,253 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

A tail command for Laravel 5

This package adds the tail command to Laravel 5. This package works for daily and single logs and has support for tailing local and the remote logs., (*1)

Install

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

``` bash composer require isbkch/laravel5-tail, (*3)

You must install this service provider:
```php
// config/app.php

'providers' => [
    ...
    Isbkch\Tail\TailServiceProvider::class,
    ...
];

If you're planning on tailing remote logs you must publish the config file with this command: ``` bash php artisan vendor:publish --provider="Isbkch\Tail\TailServiceProvider", (*4)

A file named ``tail.php`` will be created in the config directory. The options you can set in the file should be self-explanatory.
PS: You can get the username from the .env file
```php

return [


    'connections' => [

        /*
         * The environment name. You can use this value in the tail command.
         */
        'production' => [

             // Hostname of the server where the logs are located
            'host' => '',


             // Username to be used when connecting to the server where the logs are located
            'user'  => env('TAIL_USERNAME', 'isbkch'),

             // Full path to the directory where the logs are located
            'logDirectory' => '',
        ],

        // Change it to 'true' if you have grc (Generic Colouriser) installed in your system
        // To install grc on Debian based: sudo apt-get install grc
        'grc' => 'false'
    ],
];

Usage

To tail the local log you can use this command: ``` bash php artisan tail, (*5)


By default the last 20 lines will be shown. You can change that number by using the ```lines```-option. ``` bash php artisan tail --lines=50

To tail a remote log you must first specify hostname and logDirectory in the config-file. After you've done that you can tail the remote logs by specify the environment as an argument. bash php artisan tail production, (*6)

Credits

License

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

The Versions

23/05 2016

dev-master

9999999-dev https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail

29/04 2016

1.3.2

1.3.2.0 https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail

28/04 2016

1.3.1

1.3.1.0 https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail

27/04 2016

1.3

1.3.0.0 https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail

26/04 2016

1.2

1.2.0.0 https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail

26/04 2016

1.0

1.0.0.0 https://github.com/isbkch/laravel5-tail

A tail command for Laravel 5

  Sources   Download

MIT

The Requires

 

log laravel 5 tail laravel5-tail