PHPackages                             steady-as-hill/sooh-loger - 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. steady-as-hill/sooh-loger

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

steady-as-hill/sooh-loger
=========================

loger writer

1.0(7y ago)010MITPHP

Since Jun 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/waynewn/sooh-loger)[ Packagist](https://packagist.org/packages/steady-as-hill/sooh-loger)[ RSS](/packages/steady-as-hill-sooh-loger/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

日志类
===

[](#日志类)

特性：

- 支持选择文件、数据库等类型的驱动分别处理 common,error,trace三种不同的日志
- trace的日志支持app,lib,sys三个级别
- 支持自定义分割、保存方式

自定义分割、保存方式
----------

[](#自定义分割保存方式)

日志分割上，可以使用 {year},{month},{day},{hour},{minute},{second},{type}变量

文件可以用 "/var/log/{year}-{month}/{hour}-{type}.log" 作为文件名模板 数据库可以用 "db\_log.{type}\_{year}{month}{day}" 作为表明模板

保存数据上，Sooh\\LogClasses\\LogParts 的所有属性都可以用比如{time},{message}

基本用法
----

[](#基本用法)

关于支持按时间、类型分割日志

更多driver
--------

[](#更多driver)

Sooh\\LogClasses\\Synchronous 是同步写日志的类，比如要同步写文件和数据库

自定义日志分割 &amp; 保存日志
------------------

[](#自定义日志分割--保存日志)

以常见文件日志来说：

1. 可以使用 {year},{month},{day},{hour},{minute},{second},{type}定义完整路径的文件名
2. Sooh\\LogClasses\\LogParts 的所有属性（比如{time},{message}）都可以作为每行的记录的格式定义

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Unknown

Total

1

Last Release

2875d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8f4ca102171f00a75538266b967af5dcf17882e2cc351312ae734d7db3d3888?d=identicon)[waynewn](/maintainers/waynewn)

---

Tags

loger

### Embed Badge

![Health badge](/badges/steady-as-hill-sooh-loger/health.svg)

```
[![Health](https://phpackages.com/badges/steady-as-hill-sooh-loger/health.svg)](https://phpackages.com/packages/steady-as-hill-sooh-loger)
```

###  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)
