承接 uniplaces/uniplaces-monolog-extension 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

uniplaces/uniplaces-monolog-extension

Composer 安装命令:

composer require uniplaces/uniplaces-monolog-extension

包简介

logger processors for uniplaces standards

README 文档

README

Build Status

Uniplaces monolog extension

Package to support logging standards at uniplaces (www.uniplaces.com). The first only define a processor to decorate log with specific fields used to create filters.

Prerequisites

This package needs php 7.0 or a higher version and is meant to run in a symfony 4 application. Also, is supposed to have composer in the machine where is the project is going to be mounted.

Installing

To install it locally (for developing purpose) run:

$ make setup

In order to use the common processor you have to register it in the service.yaml:

    monolog.common_processor:
        class: Uniplaces\Monolog\Processors\CommonProcessor
        arguments:
            - "@request_stack"
            - '%env(APP_ID)%'
            - "%env(GIT_HASH)%"
            - "%kernel.environment%"
        tags:
            - { name: monolog.processor, method: processRecord }

The processor expextes APP_ID and GIT_HASH to be defined in the environment.

Also define a json formatter in order to be able to add the fields the log must be in json format; because of this you have to register Monolog\Formatter\JsonFormatter optionally you can add a coll to includeStacktraces to add stack trace.

    monolog.json_formatter:
        class: Monolog\Formatter\JsonFormatter
        calls:
            - [includeStacktraces]

Running the tests

$ make tests

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

Made with ❤️ at uniplaces

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

  • 总下载量: 1.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 20
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固