Giter VIP home page Giter VIP logo

laravel-log-viewer's Introduction

Log Viewer

A simple bundle to display your Laravel 3 log files.

If you are using Laravel 4 please look at this repo: https://github.com/mikemand/logviewer

Installation

php artisan bundle:install logviewer

Publish assets

php artisan bundle:publish logviewer

Then edit your application/bundles.php file and add:

return array(
	'logviewer' => array(
		'location' => 'logviewer',
		'handles' => 'logviewer'
	)
);

laravel-log-viewer's People

Contributors

ericlbarnes avatar ladea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-log-viewer's Issues

Reverse array weirdness

Thanks for this plugin, its made debugging less of a pain.
I know as a feature it takes the log file and reverses the order so you can see the last item first. However, if the log entry is more than one line long, it gets reversed too.

So I log arrays (via print_r) sometimes and it ends up looking like this:

)
[updated_at] => 2012-11-20 05:19:28
[created_at] => 2012-11-20 05:19:28
[spot] => 4
[id] => 2
(
2012-11-20 05:19:28 SAVESPOT - Array

instead of this:

2012-11-20 05:19:28 SAVESHOOTER - Array
(
[id] => 2
[spot] => 4
[created_at] => 2012-11-20 05:19:28
[updated_at] => 2012-11-20 05:19:28 
)

Maybe instead of exploding on every new line, regex for a date or something.

wrong usage of assets

My app is not in the root off the website.
and the style.css is not loading since the path to it is not correct...
Therefore I replaced in your view file ' viewer.php'

    <link href="<?php echo Bundle::assets('logviewer'); ?>style.css?1" rel="stylesheet" type="text/css">

into

    <?php 
    $assets = Asset::container('container')->bundle('logviewer');
    $assets->add('style','style.css');
    echo $assets->styles();
    ?>

Could you apply such change?

Thanks for the bundle.
Bye,
Karel.

Thanks and doc issue

Hi,

I just started using Laravel yesterday, and yours is the first bundle I tried. How cool is that?

A thought for dummies like me who arrived at the framework a day ago, you might add something like the following to the documentation.

"To enable and use logging, see the instructions at http://laravel.com/docs/logging. To view the log files, navigate to /logviewer".

It wasn't too hard to dig that information up, but being obvious is good. :)

Thanks again for the bundle.

John

How to secure the route?

What would be the best way to implement a security layer over the logviewer, besides a complicated URI?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.