承接 huhushow/monolog-azuretable 相关项目开发

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

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

huhushow/monolog-azuretable

Composer 安装命令:

composer require huhushow/monolog-azuretable

包简介

A handler for Monolog that sends messages to Azure Table Stotage

README 文档

README

Azure Table Storage Handler for Monolog, which allows to store log messages in a Azure Table Storage.

Installation

monolog-azuretable is available via composer. Just add the following line to your required section in composer.json and do a php composer.phar update.

"huhushow/monolog-azuretable": ">1.0.0"

Usage

Just use it as any other Monolog Handler, push it to the stack of your Monolog Logger instance. The Handler however needs some parameters:

  • $client TableRestProxy Instance of your Azure Storage account.
  • $table The table name where the logs should be stored
  • $level can be any of the standard Monolog logging levels. Use Monologs statically defined contexts. Defaults to Logger::DEBUG
  • $bubble Defaults to true

Examples

Given that $client is your TableRestProxy instance, you could use the class as follows:

//Import class
use AzureTableStorageHandler\AzureTableStorageHandler;

//Create AzureTableStorageHandler
$AzureTableStorageHandler = new AzureTableStorageHandler($client, "log", \Monolog\Logger::DEBUG);

//Create logger
$logger = new \Monolog\Logger($context);
$logger->pushHandler($AzureTableStorageHandler);

//Now you can use the logger, and further attach additional information

License

This tool is free software and is distributed under the MIT license. Please have a look at the LICENSE file for further information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固