2017 © Pedro Peláez
 

library syntara-logviewer

Logviewer for Syntara admin package

image

mrjuliuss/syntara-logviewer

Logviewer for Syntara admin package

  • Wednesday, August 13, 2014
  • by MrJuliuss
  • Repository
  • 3 Watchers
  • 12 Stars
  • 141 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Syntara Logviewer (Laravel 4 package)


A Logviewer for Syntara package, using Mikemand logviewer package, (*1)

, (*2)

Features

  • Views and delete Laravel4 logs

Requirements

  • PHP 5.3+

Dependencies

Installation

In the require key of composer.json file add the following line, (*3)

If your application uses Laravel 4.0 :, (*4)

/!\ This branch is no longer maintained, (*5)

"mrjuliuss/syntara-logviewer": "1.0.*", (*6)

If your application uses Laravel 4.1 :, (*7)

"mrjuliuss/syntara-logviewer": "1.1.*", (*8)

Run the Composer update command, (*9)

$ composer update, (*10)

In app/config/app.php :, (*11)

Add 'Kmd\Logviewer\LogviewerServiceProvider' and 'Mrjuliuss\SyntaraLogviewer\SyntaraLogviewerServiceProvider' to the end of the $providers array, (*12)

'providers' => array(
    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Kmd\Logviewer\LogviewerServiceProvider',
    'Mrjuliuss\SyntaraLogviewer\SyntaraLogviewerServiceProvider'
),

Launch install commands :, (*13)

php artisan logviewer:install, (*14)

You can see logs here :, (*15)

http://your-url/dashboard/logviewer, (*16)

Custom Development

Add logviewer to the navbar

  • If you already have a template for navigation : -> add to your template

@include('syntara-logviewer::navigation'), (*17)

  • else :

add to app/filters.php (or app/routes.php), (*18)

View::composer('syntara::layouts.dashboard.master', function($view)
{
    $view->nest('navPages', 'syntara-logviewer::navigation');
});

A note about Laravel 4.1 (mikemand recommandation)

As of right now (2013-11-29), fresh Laravel 4.1 applications log things differently than they used to. While this doesn't technically break LogViewer, LogViewer also doesn't know how to handle these changes. Whether these changes are permanent or not is unclear, but here's a quick fix:, (*19)

In your app/start/global.php, line 34 change:, (*20)

Log::useFiles(storage_path().'/logs/laravel.log');

to:, (*21)

$logFile = 'log-'.php_sapi_name().'.txt';

Log::useDailyFiles(storage_path().'/logs/'.$logFile);

This only applies to new installations of Laravel 4.1. If you've upgraded an existing 4.0 application (and did not make changes to the way logs are created and stored), everything should still work., (*22)


Others :

Please see Mikemand logviewer doc., (*23)

License

Syntara logviewer is released under the MIT License. See the licence file for details., (*24)

The Versions

13/08 2014

dev-master

9999999-dev

Logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara

13/08 2014

1.1.x-dev

1.1.9999999.9999999-dev

Logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara

01/06 2014

1.0.x-dev

1.0.9999999.9999999-dev

Logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara

23/12 2013

1.1

1.1.0.0

Logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara

29/11 2013

1.0.1

1.0.1.0

Syntara Logviewer, a logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara

21/10 2013

1.0

1.0.0.0

Syntara Logviewer, a logviewer for Syntara admin package

  Sources   Download

MIT

The Requires

 

by Avatar MrJuliuss

laravel log log viewer logviewer syntara