$ composer require laravel-admin-ext/log-viewer -vvv
$ php artisan admin:import log-viewer
Open http://localhost/admin/logs
.
Licensed under The MIT License (MIT).
Log viewer for laravel
Home Page: http://laravel-admin.org/
License: MIT License
$ composer require laravel-admin-ext/log-viewer -vvv
$ php artisan admin:import log-viewer
Open http://localhost/admin/logs
.
Licensed under The MIT License (MIT).
When a log directory is empty (storage/logs) this method is looped:
https://github.com/laravel-admin-extensions/log-viewer/blob/master/src/LogViewer.php#L170
Undefined index: (View: /www/wwwroot/idongni.cn/vendor/laravel-admin-ext/log-viewer/resources/views/logs.blade.php)
安装log-viewer后添加extensions配置后发现配置不生效,比如如下配置,跟踪代码后发现log-viewer的trait BootExtension是先执行static::registerRoutes();注册路由,此时name还没有传入
'extensions' => [
'log-viewer' => [
'route' => [
'domain' => env('ADMIN_DOMAIN')
]
]
]
Hi, thank you for this very useful extension,
I found a little problems , same timestamp log is incorrect.
for($i=0;$i<20;$i++){Log::debug($i);}
Level | Env | Time | Message | |
---|---|---|---|---|
DEBUG | local | 2020-09-15 14:18:15 | 9 | |
DEBUG | local | 2020-09-15 14:18:15 | 8 | |
DEBUG | local | 2020-09-15 14:18:15 | 7 | |
DEBUG | local | 2020-09-15 14:18:15 | 6 | |
DEBUG | local | 2020-09-15 14:18:15 | 5 | |
DEBUG | local | 2020-09-15 14:18:15 | 4 | |
DEBUG | local | 2020-09-15 14:18:15 | 3 | |
DEBUG | local | 2020-09-15 14:18:15 | 2 | |
DEBUG | local | 2020-09-15 14:18:15 | 19 | |
DEBUG | local | 2020-09-15 14:18:15 | 18 | |
DEBUG | local | 2020-09-15 14:18:15 | 17 | |
DEBUG | local | 2020-09-15 14:18:15 | 16 | |
DEBUG | local | 2020-09-15 14:18:15 | 15 | |
DEBUG | local | 2020-09-15 14:18:15 | 14 | |
DEBUG | local | 2020-09-15 14:18:15 | 13 | |
DEBUG | local | 2020-09-15 14:18:15 | 12 | |
DEBUG | local | 2020-09-15 14:18:15 | 11 | |
DEBUG | local | 2020-09-15 14:18:15 | 10 | |
DEBUG | local | 2020-09-15 14:18:15 | 1 | |
DEBUG | local | 2020-09-15 14:18:15 | 0 |
LogViewer.php line 349
rsort($parsed);
to
krsort($parsed);
I'm glad if you can use it.
log-viewer/resources/views/logs.blade.php
line 119 tab add style to bread word
style="word-break: break-word;"
When I try to install it on laravel-admin version 1.8 I get this error
Problem 1
- laravel-admin-ext/log-viewer v1.0 requires laravel/framework 5.5.*
- laravel-admin-ext/log-viewer[v1.0.1, v1.0.2] require laravel/framework ~5.5
- laravel-admin-ext/log-viewer[v1.0.3, v1.0.4] require encore/laravel-admin ~1.6
- Root composer.json requires laravel-admin-ext/log-viewer ^1.0 -> satisfiable by laravel-admin-ext/log-viewer[v1.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4].
FatalThrowableError In LogController.php line 12 :
Type error: Argument 2 passed to Encore\Admin\LogViewer\LogController::index() must be an instance of Illuminate\Http\Request, none given
Installation is completed but we get following error message when we run artisan command.
php artisan admin:import log-viewer
'In Extension.php line 306:
Class name must be a valid object or a string
多级目录日志文件无法查看
Thanks for useful extension. I need to use with 1.6.x series.
Choice question must have at least 1 choice available.
give error
Required parameter $request follows optional parameter $file
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
vendor/laravel-admin-ext/log-viewer/src/LogController.php:12
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.