定制 cron-eu/flow-syslog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cron-eu/flow-syslog

最新稳定版本:v1.0

Composer 安装命令:

composer require cron-eu/flow-syslog

包简介

Implements a Flow LogBackend for the local syslog daemon

README 文档

README

Abstract

This Flow package allows you to use the local syslog daemon for logging and is a replacement for the TYPO3\Flow\Log\Backend\FileBackend.

This is especially useful while integrating external services for log-management, like e.g. Papertrail, which are using the syslog protocol for (securely) access.

Install

composer require cron-eu/flow-syslog:dev-master --update-no-dev

Setup

Configure the Backend for the e.g. systemLogger and securityLogger:

TYPO3:
  Flow:
    log:
      systemLogger:
        backend: CRON\Flow\Log\Backend\SyslogBackend
        backendOptions:
          # identifies the application
          name: 'my-awesome-flow-app'
          # log all 
          severityThreshold: '%LOG_DEBUG%'
          # syslog facility code, default is LOG_LOCAL1
          facility: '%LOG_LOCAL3%'
      securityLogger:
        backend: CRON\Flow\Log\Backend\SyslogBackend
        backendOptions:
          # identifies the application
          name: 'my-awesome-flow-app'
          severityThreshold: '%LOG_DEBUG%'
          facility: '%LOG_LOCAL3%'

Syslog Severity Levels

Value Code Description
0 LOG_EMERG system is unusable
1 LOG_ALERT action must be taken immediately
2 LOG_CRIT critical conditions
3 LOG_ERR error conditions
4 LOG_WARNING warning conditions
5 LOG_NOTICE normal, but significant, condition
6 LOG_INFO informational message
7 LOG_DEBUG debug-level message

I do recommend to disable the severityThreshold, setting it to LOG_DEBUG and setup syslog for the filtering/routing.

References

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固