PHPackages                             yftzeng/wowlog - 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. yftzeng/wowlog

ActiveLibrary

yftzeng/wowlog
==============

Easy management your log files, with execution time, severity level.

09781PHP

Since Oct 31Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

phpWowLog
=========

[](#phpwowlog)

Wow! Log for PHP. Simple but good enough.

Requirement
-----------

[](#requirement)

PHP 5.3+

Usage
-----

[](#usage)

### Standalone WowLog library

[](#standalone-wowlog-library)

```
include '../src/Wow/Log/WowLog.php';

use Wow\Log\WowLog;

$log_dir = 'log';
$log_level = 'DEBUG';

WowLog::init($log_dir, $log_level);
WowLog::info('info');
WowLog::notice('notice');
WowLog::warn('warn');
WowLog::alert('alert');
WowLog::crit('alert');
WowLog::emer('alert');

# Change log_dir to 'anotherLogDir'
WowLog::info("start", 'anotherLogDir');

```

### Work with Composer

[](#work-with-composer)

#### Edit `composer.json`

[](#edit-composerjson)

```
{
    "require": {
        "yftzeng/wowlog": "dev-master"
    }
}

```

#### Update composer

[](#update-composer)

```
$ php composer.phar update

```

#### Sample code

[](#sample-code)

```
include 'vendor/autoload.php';

use Wow\Log\WowLog;

$log_dir = 'log';
$log_level = 'DEBUG';

WowLog::init($log_dir, $log_level);
WowLog::info('info');
WowLog::notice('notice');
WowLog::warn('warn');
WowLog::alert('alert');
WowLog::crit('alert');
WowLog::emer('alert');

# Change log_dir to 'anotherLogDir'
WowLog::info("start", 'anotherLogDir');

```

Format
------

[](#format)

```
[Time][Execution Time][Memory Usage][__FILE__:__LINE__] Message

```

Example:

```
[2012-04-25 14:50:06][0.000043][Mem:524288][SimpleLogger.php:7] start
[2012-04-25 14:50:06][0.000034][Mem:524288][SimpleLogger.php:9] echo 1
[2012-04-25 14:50:07][1.000221][Mem:524288][SimpleLogger.php:11] sleep 1
[2012-04-25 14:50:07][0.000060][Mem:524288][SimpleLogger.php:13] echo abc

```

Especially, each log message has its own "execution time", and which `__FILE__` and `__LINE__` did log.

Otherwise
---------

[](#otherwise)

If you think [Monolog](https://github.com/Seldaek/monolog) is more better, you could also check out `patch` directory, I *dirty* hacked it by adding execution time. (It's *dirty* so I did not feedback to upstream, happy hacking)

License
-------

[](#license)

the MIT License

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/245302?v=4)[Yi-Feng Tzeng (ant)](/maintainers/yftzeng)[@yftzeng](https://github.com/yftzeng)

---

Top Contributors

[![yftzeng](https://avatars.githubusercontent.com/u/245302?v=4)](https://github.com/yftzeng "yftzeng (9 commits)")

### Embed Badge

![Health badge](/badges/yftzeng-wowlog/health.svg)

```
[![Health](https://phpackages.com/badges/yftzeng-wowlog/health.svg)](https://phpackages.com/packages/yftzeng-wowlog)
```

PHPackages © 2026

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