承接 hyancat/light-log 相关项目开发

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

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

hyancat/light-log

Composer 安装命令:

composer require hyancat/light-log

包简介

A Light and Simple Logger for Light Applications

README 文档

README

A Light and Simple Logger for Light Applications.

Installation

composer require hyancat/light-log

Usage

// Namespace
use HyanCat\LightLog\Adapters\FileHandler as LogFileHandler;
use HyanCat\LightLog\LightLog as LLog;

// Instance
$llog = new LLog(new LogFileHandler('logs/test.log'));
$llog->app('your_app_name'); // optional

// Write log
$llog->info("it's ok!");

// Or dump an array
$anArray = ['a' => 'b', 'c' => 'd'];
$llog->debug("dump array value", $anArray);

// Or notice, warning, error...

Here it will write some logs into file, which looks like this: (copied from test case)

[your_app_name] [INFO] TestLog.php:14 - it's ok! []
[your_app_name] [DEBUG] TestLog.php:17 - dump array value {"a":"b","c":"d"}

LICENSE

The MIT License (MIT)

Copyright (c) 2016 HyanCat <hyancat@live.cn>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固