PHPackages                             krokedil/krokedil-logger - 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. krokedil/krokedil-logger

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

krokedil/krokedil-logger
========================

Logging for WooCommerce Gateways

1.0.6(8y ago)01421MITJavaScriptPHP &gt;=5.6.0

Since Jan 30Pushed 7y ago4 watchersCompare

[ Source](https://github.com/krokedil/krokedil-logger)[ Packagist](https://packagist.org/packages/krokedil/krokedil-logger)[ Docs](https://www.krokedil.se)[ RSS](/packages/krokedil-krokedil-logger/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (6)Used By (0)

krokedil-logger
===============

[](#krokedil-logger)

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

[](#installation)

Install with [Composer](getcomposer.org).

Add these lines to your composer.json:

```
{
    "require": {
        "krokedil/krokedil-logger": "^1.0"
    }
}

```

Usage
-----

[](#usage)

### Log event

[](#log-event)

Use the function **krokedil\_log\_events**.

```
Example: krokedil_log_events( $order_id, $title, $data );

```

$order\_id = The WooCommerce order id. Can be sent as null if you want to log events before an order exists.

$title = The title that you wish to have for the event.

$data = An **array** of the data that you want to log.

### Set the version used for order

[](#set-the-version-used-for-order)

Use the function **krokedil\_set\_order\_gateway\_version**.

```
Example: krokedil_set_order_gateway_version( $order_id, $version );

```

$order\_id = The WooCommerce order id.

$version = The version that you want to log for the order.

Use this function at a point where an order exists, for example thank you page or process\_order.

### Set display on/off

[](#set-display-onoff)

To switch between showing and not showing the logs on the order add a define for **KROKEDIL\_LOGGER\_ON** to turn it on.

```
Example: define( 'KROKEDIL_LOGGER_ON', true );

```

### Set gateway filter

[](#set-gateway-filter)

You need to set what gateway the meta box should be allowed for. Do this using the define **KROKEDIL\_LOGGER\_GATEWAY**.

```
Example: define( 'KROKEDIL_LOGGER_GATEWAY', '$string' );

```

$string = A string or substring of the gateway id.

### Recognition

[](#recognition)

This plugin uses the renderjson JavaScript created by GitHub user [Caldwell](https://github.com/caldwell/). It can be found here: [RenderJSON](https://github.com/caldwell/renderjson).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~15 days

Total

5

Last Release

2967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bce7d6ae6f2af5f771663d6d45d29a0371e72a3400697dd50aa78775218fbdf?d=identicon)[MichaelBengtsson](/maintainers/MichaelBengtsson)

---

Top Contributors

[![MichaelBengtsson](https://avatars.githubusercontent.com/u/26217027?v=4)](https://github.com/MichaelBengtsson "MichaelBengtsson (15 commits)")[![slobodan](https://avatars.githubusercontent.com/u/129607?v=4)](https://github.com/slobodan "slobodan (1 commits)")

---

Tags

logloggingwoocommerce

### Embed Badge

![Health badge](/badges/krokedil-krokedil-logger/health.svg)

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)

PHPackages © 2026

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