Fork me on GitHub

Installation

Before to install

This documentation is for Glog library. This is primary library which integrates Gui and Api to log system. Therefore before to use Api service or Gui, make sure that you have successfully setup the library.


Glog is a Laravel Package. If you will log into database, be sure that your database settings has been updated on environment file (.env) .

run composer install or composer update after entering following line into your composer.json

    "gazatem/glog": "dev-master"
        

And run following command - Don't forget to dump composer autoload

    composer update
        

Add the service provider to your config/app.php file

    Gazatem\Glog\GlogServiceProvider::class,
        

Publish the configuration file(s)


    php artisan vendor:publish --provider="Gazatem\Glog\GlogServiceProvider" 
        

If you will log into database, run following command to create database table. This table will hold logs:

    php artisan migrate
        

Then in your bootstrap/app.php add / update your Monolog configiuration.


    $app->configureMonologUsing(function ($monolog) {
        $monolog->pushHandler(new \Gazatem\Glog\Glog());
    });         
        
Open config/glog.php file and update the settings. For more information, please read usage documantation.

System Requirements

A web site built with Laravel