elcweb/graylog-bundle

该包已被 弃用 且不再维护。未建议替代包。

Graylog Monolog 连接器

安装量: 3,206

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

0.1.1 2016-09-08 19:18 UTC

This package is auto-updated.

Last update: 2021-09-07 19:30:18 UTC


README

Build Status Total Downloads Latest Stable Version

安装

使用以下命令安装最新版本

$ composer require elcweb/graylog-bundle

启用包

在内核中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Elcweb\GraylogBundle\ElcwebGraylogBundle(),
    );
}

配置

将以下内容添加到您的 config.yml 中

parameters:
    elcweb_graylog.hostname: 127.0.0.1
    elcweb_graylog.port: 12201

monolog:
    handlers:
        gelf:
            type: service
            id: elcweb.graylog.monolog.gelf_handler
            level: debug

限制

目前仅支持 udp 传输

许可证

The MIT License (MIT)

Copyright (c) 2016 Etienne Lachance <et@etiennelachance.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.