Coder Social home page Coder Social logo

websterl3o / log-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opcodesio/log-viewer

0.0 0.0 0.0 756 KB

Fast and beautiful Log Viewer for Laravel

Home Page: https://log-viewer.opcodes.io

License: MIT License

JavaScript 3.63% PHP 71.48% Blade 18.22% SCSS 6.66%

log-viewer's Introduction

Log Viewer
Easy-to-use, fast, and beautiful

Features | Installation | Documentation | Troubleshooting | Credits

Packagist Packagist PHP from Packagist Laravel Version

log-viewer-light-dark

OPcodes's Log Viewer is a perfect companion for your Laravel app.

You will no longer need to read the raw Laravel log files trying to find what you're looking for.

Log Viewer helps you quickly and clearly see individual log entries, to search, filter, and make sense of your Laravel logs fast. It is free and easy to install.

๐Ÿ“บ Watch a quick 4-minute video showcasing some Log Viewer features.

Features

  • ๐Ÿ“‚ View all the Laravel logs in your storage/logs directory,
  • ๐Ÿ” Search the logs,
  • ๐ŸŽš Filter by log level (error, info, debug, etc.),
  • ๐Ÿ”— Sharable links to individual log entries,
  • ๐ŸŒ‘ Dark mode
  • ๐Ÿ’พ Download & delete log files from the UI,
  • โ˜‘๏ธ Horizon log support (up to Horizon v9.20)
  • and more...

Documentation

Documentation can be found on the official website.

Get Started

Requirements

  • PHP 8.0+
  • Laravel 8+

Installation

To install the package via composer, Run:

composer require opcodesio/log-viewer

Usage

Once the installation is complete, you will be able to access Log Viewer directly in your browser.

By default, the application is available at: {APP_URL}/log-viewer.

(for example: https://my-app.test/log-viewer)

Configuration

Please visit the Log Viewer Docs to learn about configuring Log Viewer to your needs.

Troubleshooting

Here are some common problems and solutions.

Problem: "Livewire not defined" or other errors in the browser's console

This is most often caused by your project being served from a sub-folder, like example.com/your-laravel-project/log-viewer.

Livewire by default tries to load its resources from the root of the domain, like example.com/livewire/livewire.js, but if that's outside your project's sub-folder, then you need to set a different asset_url. You can read more about it here.

Fortunately, the fix is easy:

  1. Publish the Livewire config:
php artisan livewire:publish --config
  1. Set the asset_url option in the config/livewire.php file to your app's subdomain:
    'asset_url' => '/your-laravel-project',

Problem: Logs not loading

At the moment, Log Viewer is only able to process Laravel logs that look something like this:

[2022-08-25 11:16:17] local.DEBUG: Example log entry for the level debug {"one":1,"two":"two","three":[1,2,3]}
Multiple lines are allowed
and will be picked up as contents
of the same log entry.

If your logs are structured differently, then you'll have to wait until we ship support for custom log formats. Otherwise, please adjust your log format to Laravel's default.

Screenshots

Read the release blog post for screenshots and more information about Log Viewer's features.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

log-viewer's People

Contributors

arukompas avatar kamandlou avatar dansysanalyst avatar advaith3600 avatar florisbosch avatar alphaolomi avatar jemcdo avatar crazyboy49z avatar fsamapoor avatar websterl3o avatar mabdullahsari avatar tfevens avatar andydptyo avatar jnyheim avatar memu avatar

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.