承接 minhyung/monolog-synology 相关项目开发

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

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

minhyung/monolog-synology

最新稳定版本:0.2.0

Composer 安装命令:

composer require minhyung/monolog-synology

包简介

Monolog handler for Synology

README 文档

README

A Monolog handler for sending log messages to Synology Chat via incoming webhooks.

Features

  • Send logs from your PHP application directly to Synology Chat
  • Custom formatter for structured JSON messages
  • Built on top of Monolog

Installation

Install via Composer:

composer require minhyung/monolog-synology

Usage

use Minhyung\Monolog\SynologyChatHandler;
use Monolog\Logger;

$webhookUrl = 'https://your-synology-chat-webhook-url';
$logger = new Logger('synology');
$handler = new SynologyChatHandler($webhookUrl);
$logger->pushHandler($handler);

$logger->info('This is a test message sent to Synology Chat!');

Handler Options

  • $url (string): Synology Chat incoming webhook URL (required)
  • $ignoreFailure (bool): If true, exceptions during sending will be ignored (default: false)
  • $level: Minimum logging level (default: Logger::DEBUG)
  • $bubble: Whether messages bubble up the stack (default: true)

Formatter

The handler uses a custom formatter (SynologyChatFormatter) that encodes log records as JSON strings for Synology Chat.

License

MIT License. See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-10