Skip to content

Latest commit

 

History

History
109 lines (74 loc) · 3.5 KB

1.Installation-and-Setup.md

File metadata and controls

109 lines (74 loc) · 3.5 KB

1. Installation & Setup

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage
  4. FAQ

Server Requirements

The LogViewer package has a few system requirements:

- PHP >= 5.6.4

Application Requirements

LogViewer support only the daily log handler, so make sure that you log handler is set to daily instead of single:

// config\app.php
return [
    ...

    /*--------------------------------------------------------------------------
     | Logging Configuration
     |--------------------------------------------------------------------------
     | Available Settings: "single", "daily", "syslog", "errorlog"
     */
    'log' => 'daily',

    ...
];

Laravel uses the Monolog PHP logging library. This gives you a variety of powerful log handlers/formatters to utilize.

Version Compatibility

LogViewer Laravel
LogViewer v4.2.x Laravel v5.0 Laravel v5.1 Laravel v5.2 Laravel v5.3
LogViewer v4.3.x Laravel v5.4

Composer

You can install this package via Composer by running this command: composer require arcanedev/log-viewer.

Laravel

Setup

Once the package is installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
    ...
    Arcanedev\LogViewer\LogViewerServiceProvider::class,
],

No need to register the LogViewer facade, it's done automagically.

Artisan commands

To publish the config and translations files, run this command:

php artisan log-viewer:publish
To force publishing
php artisan log-viewer:publish --force
Publishing the config only
php artisan log-viewer:publish --tag=config

To force publishing add --force flag.

Publishing the translations only
php artisan log-viewer:publish --tag=lang

To force publishing add --force flag.

Application requirements & log files check

php artisan log-viewer:check

DONE !

Go to http://{your-project}/log-viewer (See the Configuration page to change the uri and other stuff).