GithubHelp home page GithubHelp logo

jackiedo / laravel-log-reader Goto Github PK

View Code? Open in Web Editor NEW
149.0 6.0 23.0 120 KB

A log reader and management tool for Laravel

License: MIT License

PHP 100.00%
log-reader log-viewer laravel log log-parser reader viewer

laravel-log-reader's Introduction

Laravel Log Reader

Latest Stable Version Total Downloads Latest Unstable Version License

Laravel Log Reader is an easy log reader and management tool for Laravel. You can easily view, manage, and modify the log entries throught web browser and Artisan CLI. Using Laravel Log Reader is almost identical to using any Eloquent model.

Features

  • Allows using with Facade or using dependency injection (version 2.x only).
  • Working via Artisan CLI.
  • Manage the log files (list, delete).
  • Manage all the log entries (paging for reading, sorting entries, count total, delete, mark as read).
  • Filter the log entries (by the log file, environment, level).
  • Access one log entry (to get its attribute, delete, mark as read).
  • Allows to use your own log parser.

Documentation

Look at here to learn more about Laravel Log Reader

Screenshot

Here are some screenshots on how to use Laravel Log Reader in actual project. Keep in mind that this package does not include interface resources. Building user interfaces is up to each app developer.

Listing the log entries.

index_collapsed

Expanding detail of one log entry.

index_expanded

Working via Artisan CLI.

artisan_get

artisan_detail

License

MIT © Jackie Do

Thanks for use

Hopefully, this package is useful to you.

laravel-log-reader's People

Contributors

jackiedo avatar laravel-shift avatar thienanblog avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-log-reader's Issues

Please, don't use GLOB_BRACE

Please, refactor the LogReader class and remove the GLOB_BRACE usage due to inability of using the package on Alpine containers. Thanks!

LogReader error

PHP Version: 8.1
Laravel: 8

[2022-01-15 23:48:57] testing.WARNING: class_exists(): Passing null to parameter #1 ($class) of type string is deprecated in /home/simo/code/vendor/jackiedo/log-reader/src/Jackiedo/LogReader/LogReader.php on line 133

Referencing this line:

if (class_exists($defaultParserClass)) {

Laravel 6 support

Currently can't install Laravel 6. Can you please look into it and add support for it?

Problem 1
- jackiedo/log-reader 1.0.9 requires illuminate/console 4.2 -> no matching package found.
- Conclusion: don't install laravel/framework v6.9.0

Carbon 2 compatibility

Any chance to get the ~1.2 restriction on Carbon 1 bumped up to support Carbon 2? Thanks!

Static method and $this

Hi!

In the documentation you mention that methods can be called statically like this:
$entries = LogReader::filename($file)->get();

But I get this exception for every method, even count() too:
Non-static method Jackiedo\LogReader\LogReader::filename() should not be called statically, assuming $this from incompatible context

I can't use dependency injection, because I use a dynamic routing that not allows it.
What should I do?

Thanks!
Tim

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.