PHPackages                             ofix/panda-log - 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. ofix/panda-log

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

ofix/panda-log
==============

panda-log is a yii2-extension for log and view debug information

1.5.0(7y ago)1462MITPHP

Since Apr 18Pushed 7y ago1 watchersCompare

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

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

### Panda Log Document

[](#panda-log-document)

> Panda-log is a debugger tool for flushing log data to binary file. For each Http/Https Request, the bussiness code lines may distribute in different files and different functions. **panda-log** would track all the code execution stream in one request. No matter you call `Panda::log` in which function, you **must** call `Panda::flush` once before sending response data to client, and only at this time all the log records generated by calling `Panda::log` would be populated and be flushed to binary file at once. Panda-log depends on Yii2 framework, it's lightweight, and easy-to-use. Just enjoy your debug journey.

**Panda-log Screen Shot**

[![PHP code example](https://github.com/ofix/panda-log/raw/master/assets/panda_log_1.png)](https://github.com/ofix/panda-log/raw/master/assets/panda_log_1.png)

[![View debug information in browser](https://github.com/ofix/panda-log/raw/master/assets/panda_log_2.png)](https://github.com/ofix/panda-log/raw/master/assets/panda_log_2.png)

**Install panda-log via composer**

```
composer require ofix/panda-log
```

**Config panda-log as a module in `Yii2` framework**

```
  'bootstrap' => ['panda-log'],
  $config['modules']['panda-log'] = [
      'class' => ofix\PandaLog\Module::class,
      'log_dir'=> '@backend/runtime/panda-log/', // log_dir is the directory panda-log files located on
  ];
```

**How to use panda-log in PHP**

```
 // log string
 $str = "test for string";
 Panda::log("str",$str);
 // log sql
 $sql = (new Query())->select("some_table")->where(["id"=>4032]);
 Panda::log("sql",$sql);
 // log number
 $num = 323;
 Panda::log("num",$num);
 // log object
 $student = new \stdClass();
 $student->name = "tom";
 $student->age = 28;
 Panda::log("student",$student);
 // log array
 $arr = ["id"=>3223,"mobile"=>13993434];
 Panda::log("arr",$arr);

 //flush all above records to log file please call following code,otherwise it would not save in files.
 Panda::flush();
```

**View panda-log data in browser**

> With the above configuration, you will be able to access panda-log in your browser using the URL `http://localhost/path/to/index.php?r=panda-log`

> If your application enables \[\[\\yii\\web\\UrlManager::enablePrettyUrl|pretty URLs\]\], you can then access panda-log via URL: `http://localhost/path/to/index.php/panda-log`

**Support or Contact**

Having trouble with panda-log usage? contact me with QQ|WeChat `981326632` or send email to

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~18 days

Total

6

Last Release

2850d ago

### Community

Maintainers

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

---

Top Contributors

[![ofix](https://avatars.githubusercontent.com/u/5332774?v=4)](https://github.com/ofix "ofix (66 commits)")

---

Tags

logloggingdebugyii2-extensionpanda-log

### Embed Badge

![Health badge](/badges/ofix-panda-log/health.svg)

```
[![Health](https://phpackages.com/badges/ofix-panda-log/health.svg)](https://phpackages.com/packages/ofix-panda-log)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k6](/packages/inpsyde-wonolog)[mero/yii2-monolog

The Monolog integration for the Yii framework.

42186.1k](/packages/mero-yii2-monolog)[baibaratsky/yii2-rollbar

Rollbar for Yii2

35130.5k](/packages/baibaratsky-yii2-rollbar)[phpconsole/phpconsole

A detached logging facility for PHP to aid your daily development routine

417.5k1](/packages/phpconsole-phpconsole)

PHPackages © 2026

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