w3docs/log-viewer-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require w3docs/log-viewer-bundle
包简介
W3DocsLogViewerBundle allows to filter, group and analyse symfony2 log files
README 文档
README
Installation
Step1: Download W3docsLogviewerBundle using composer
Add W3docsLogviewerBundle in your composer.json:
{ "require": { "w3docs/log-viewer-bundle": "dev-master" } }
Now update composer.
Composer will install the bundle to your project's vendor/w3docs directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new W3docs\LogViewerBundle\W3docsLogViewerBundle() ); }
Usage
show logs from prod.log level error or higher (CRITICAL, ALERT, EMERGENCY)
app/console log:view prod.log --level=error
show logs for given chanal "security"
app/console log:view prod.log --logger=security
group errors and order then, this will allow to find most occurred logs
app/console log:view prod.log --group
group and limit result to 10 (log must be at least 10 times or any other given number).
app/console log:view prod.log --group --having=10
filtering by start and/or end date
app/console log:view prod.log --start=01-03-2015 --end=05-03-2015
统计信息
- 总下载量: 4.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-13