w3docs/log-viewer-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-13