2017 © Pedro Peláez
 

library stklog-laravel

Stklog php package for laravel

image

taitai42/stklog-laravel

Stklog php package for laravel

  • Tuesday, July 4, 2017
  • by yannis
  • Repository
  • 1 Watchers
  • 0 Stars
  • 946 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

stklog-laravel

This package is a stklog wrapper to send your log to stklog. please check stklog.io for more information on how to get your project_key, (*1)

Install

Via Composer, (*2)

``` bash $ composer require taitai42/stklog-laravel, (*3)


add the service provider to your `config/app.php` file ```php 'providers' => [ ..., \taitai42\Stklog\StklogServiceProvider::class, ],

publish the config file :, (*4)

php artisan vendor:publish

you can optionnally use the provided stklog middleware that will log all of your request to your app. to do so add this line in your kernel.php file :, (*5)

protected $middleware = [
 ...,

 taitai42\Stklog\Middleware\StklogMiddleware::class,
];

Usage

stklog-laravel package will automatically overwrite the log interface of your laravel app, meaning you can simply use your normal logging way and everything will be forwarded to stklog, (*6)

you can also declare your own stack by using the stack repository :, (*7)

// use taitai42\Stklog\Model\StackRepository;

StackRepository::stack('incoming request', null, $request->headers->all());
Log::info("parsing request ...");

You can also use this handler outside laravel, to do so simply add the new handler with the transport of your choice to your monolog instance :, (*8)

<?php

use Monolog\Logger;
use taitai42\Stklog\Handler\StklogHttpHandler;

// create a log channel
$log = new Logger('name');
$log->pushHandler(new StklogHttpHandler('your-project-key', Logger::WARNING));

// add records to the log
$log->warning('Foo');
$log->error('Bar');

Todo

  • set the default log level in config
  • test nesting stack when it will be working
  • endstack by name (check nested stack)
  • add test ? (or be confident.)

The Versions

04/07 2017

dev-master

9999999-dev https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

04/07 2017

v1.5

1.5.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

04/07 2017

dev-feature/add-tcp

dev-feature/add-tcp https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

04/07 2017

v1.4

1.4.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

15/06 2017

v1.3

1.3.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

01/06 2017

v1.2

1.2.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

18/05 2017

v1.1

1.1.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

17/05 2017

v1.0

1.0.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

14/05 2017

v0.1

0.1.0.0 https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

by yannis berrouag

taitai42 stklog-laravel

11/05 2017

v0.1-alpha

0.1.0.0-alpha https://github.com/taitai42/stklog-laravel

Stklog php package for laravel

  Sources   Download

BSD

The Requires

 

The Development Requires

by yannis berrouag

taitai42 stklog-laravel