PHPackages                             kodansha/wack-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. kodansha/wack-log

ActiveWordpress-plugin[Logging &amp; Monitoring](/categories/logging)

kodansha/wack-log
=================

Simple logger plugin to output logs to stdout.

v0.2.1(2mo ago)0353↓50%GPL-3.0-or-laterPHPPHP &gt;=8.2

Since Jan 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/kodansha/wack-log)[ Packagist](https://packagist.org/packages/kodansha/wack-log)[ Docs](https://github.com/kodansha/wack-log)[ RSS](/packages/kodansha-wack-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (12)Used By (0)

WACK Log
========

[](#wack-log)

**WACK Log** is a simple WordPress plugin to output logs to the stdout.

It is created as a thin Monolog wrapper with the intention of being used with the WACK Stack, but it can also be used with other WordPress installations, especially convenient for those that are containerized.

Installation
------------

[](#installation)

- Requires PHP 8.2 or later
- Requires WordPress 6.0 or later
- Requires Composer

### Using Composer

[](#using-composer)

```
composer require kodansha/wack-log
```

Note

This plugin is not available on the WordPress.org plugin repository. For the moment, the only way to install it is to use Composer.

Usage
-----

[](#usage)

WACK Log exposes a global function `logger()` that can be used as below:

```
logger()->debug('This is debug message.');
logger()->info('This is information message.');
logger()->warning('This is warning message.');
logger()->error('This is error message.');
```

In addition, it also provides a shorthand usage that is convenient for debugging:

```
logger('This is debug message.');
```

Configuration
-------------

[](#configuration)

There are two methods for customizing the behavior of WACK Log:

- Setting through the `WACK_LOG_SETTINGS` constant
- Setting via the settings screen in the WordPress admin menu

### Setting via WACK\_LOG\_SETTINGS

[](#setting-via-wack_log_settings)

Define `WACK_LOG_SETTINGS` in functions.php or similar:

```
define('WACK_LOG_SETTINGS', [
    'use_json_format' => true,
]);
```

### Setting via WordPress admin menu

[](#setting-via-wordpress-admin-menu)

Go to the settings screen of WACK Log in the WordPress admin menu and follow the instructions on the screen.

Note

If settings exist both in `WACK_LOG_SETTINGS` and the admin menu settings at the same time, the settings defined in the constant are prioritized as a general rule.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance91

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~190 days

Total

8

Last Release

72d ago

PHP version history (2 changes)v0.0.1PHP &gt;=8.1

v0.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/19324b7c1443d7275e10ceb66dd9004cba4a09640900791eb5c5040080ab4096?d=identicon)[kodansha](/maintainers/kodansha)

---

Top Contributors

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

---

Tags

pluginwordpress

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kodansha-wack-log/health.svg)

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

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k6](/packages/inpsyde-wonolog)[jadb/cakephp-monolog

CakePHP Monolog Plugin

5518.9k](/packages/jadb-cakephp-monolog)[putyourlightson/craft-log-to-file

Logs messages to a specific log file for Craft CMS.

29368.0k5](/packages/putyourlightson-craft-log-to-file)[lordsimal/cakephp-sentry

Sentry plugin for CakePHP

12270.3k](/packages/lordsimal-cakephp-sentry)

PHPackages © 2026

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