承接 elixis/google-big-query-logger 相关项目开发

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

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

elixis/google-big-query-logger

Composer 安装命令:

composer require elixis/google-big-query-logger

包简介

Monolog handler to write and read log message to Google Big Query

README 文档

README

GoogleBigQuery-logger is PHP client, who extends a Monolog handler Monolog\Handler\AbstractProcessingHandler for writing logs in a BigQuery dataset making use of Google's google/cloud-bigquery PHP client.

Instalation

Google BigQuery logger will be available comming soon on Packagist and can be installed with Composer. Run this command:

composer require ...

Usage

Note: This first version of the Google BigQuery logger for PHP requires PHP 7.1 or greater.

Simple example to write logs.

<?php

require __DIR__ . '/vendor/autoload.php';

use GoogleBigQueryLogger\BigQueryLogger;
use GoogleBigQueryLogger\BigQueryTable;
use GoogleBigQueryLogger\Handler\BigQueryHandler;
use Monolog\Logger;

//Create a new table in a dataset
$bigQueryTable = new BigQueryTable();
$bigQueryTable->createTable();

// Create the logger
$logger = new Logger('logger');
// Add a new BigQuery handler
$logger->pushHandler(new BigQueryHandler($bigQueryTable));

// You can now use your logger
$logger->info('With only age');

Documentation

License

Monolog is licensed under the MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固