定制 h22k/logma 二次开发

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

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

h22k/logma

最新稳定版本:0.0.3

Composer 安装命令:

composer require h22k/logma

包简介

Basic logging library for small projects

README 文档

README

MIT License Monolog

Logma

Logma is a simple logging tool. It's name coming from combination of Turkish word Lokma and log.

Install

composer require h22k/logma

Usage/Examples

TODO: More examples will be added.

<?php

use H22k\Logma\Formatter\PlainTextFormatter;
use H22k\Logma\Logma;
use H22k\Logma\Resource\StreamResource;
use H22k\Logma\Source\StreamSource;

$logma = new Logma(
    'logma',
);

$source = new StreamSource(
    new StreamResource(__DIR__.'/storage/test.log'), 
    new PlainTextFormatter());

$logma->addSource($source);

$logma->info('first log'); 
// OUTPUT: [29/04/24 07:18:48] logmaTest.INFO | first log a:0:{}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-29