PHPackages                             codeages/biz-targetlog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. codeages/biz-targetlog

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

codeages/biz-targetlog
======================

Target Logger.

v0.2.1(9y ago)0166MITPHP

Since Jul 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/codeages/biz-targetlog)[ Packagist](https://packagist.org/packages/codeages/biz-targetlog)[ RSS](/packages/codeages-biz-targetlog/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Targetlog
=========

[](#targetlog)

\*\* 此项目已合并入Biz Framework \*\*，请移步至：  。

[![Build Status](https://camo.githubusercontent.com/a1a77adf3bf5a4dc737ac7637c23059107d82268e12bfca89c2324ef49d75cd5/68747470733a2f2f7472617669732d63692e6f72672f636f6465616765732f62697a2d7461726765746c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/codeages/biz-targetlog)

一个日志类，用于针对某个对象记录日志的类，日志存储到数据库，便于查询检索。

使用说明
----

[](#使用说明)

创建了针对标识为{example-1}对象的日志类：

```
$logger = new Targetlogger('example', 1);

```

记录日志：

```
$context = array('user_id' => 1, 'action' => 'some_action', 'ip' => '127.0.0.1');
$logger->debug('something happen', $context);

```

其中$context为可选参数，$context中的各个key也是可选。如果$context中的key传入了`user_id`, `action`, `ip`则会当做字段记录，可被检索。

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

5

Last Release

3383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e6f8246b2e0cf9bb1e36263675cd2f86128fde2b44b7db515af38d98d75fb65?d=identicon)[Wellming](/maintainers/Wellming)

![](https://www.gravatar.com/avatar/876e2f89251badfefaec373a049de33dd49f8ba573a1ed052fc54b679bef7dea?d=identicon)[bellorchid](/maintainers/bellorchid)

---

Top Contributors

[![lileiseven](https://avatars.githubusercontent.com/u/94609?v=4)](https://github.com/lileiseven "lileiseven (18 commits)")

### Embed Badge

![Health badge](/badges/codeages-biz-targetlog/health.svg)

```
[![Health](https://phpackages.com/badges/codeages-biz-targetlog/health.svg)](https://phpackages.com/packages/codeages-biz-targetlog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
