# vaimo/kustom-module-logger

> Kustom logging module

`composer require vaimo/kustom-module-logger`

Canonical URL: https://packagento.com/vaimo/kustom-module-logger

## At a glance

- **Vendor**: Vaimo (https://packagento.com/vaimo.md)
- **Latest version**: 3.0.9 — released 2025-09-11
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/vaimo/kustom-module-logger and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require vaimo/kustom-module-logger:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Kustom logging module

## Changelog

3.0.9 / 2025-06-03
==================

  * PPP-2085 Change lengths of index columns for Klarna Logger database table

3.0.8 / 2025-05-21
==================

  * PPP-2055 Compatibility with AC 2.4.8 and PHP 8.4

3.0.7 / 2025-04-03
==================

  * PPP-1759 Create integration tests for \Klarna\Logger\Cron\UpdateApiLog
  * PPP-1860 Simplified repository classes for database abstractions

3.0.6 / 2025-03-26
==================

  * PPP-1903 Fetch available Klarna features from Klarna API

3.0.6 / 2025-01-22
==================

  * PPP-1859 Simplified unit tests by using a helper which includes the mocking logic.
  * PPP-1954 Fix database connection pooling issue

3.0.5 / 2024-12-03
==================

  * PPP-1729 Reduced the filter list at \Klarna\Logger\Model\Cleanser

3.0.4 / 2024-10-18
==================

  * PPP-1714 Simplify composer.json files
  * PPP-1730 Change logging file name

3.0.3 / 2024-09-26
==================

  * PPP-588 Fixed shown exception on the landing page
  * PPP-1637 Readded the ability to enable and disable the file logging in the settings.

3.0.2 / 2024-08-21
==================

  * PPP-338 Added unit tests for the Cleanser class.
  * PPP-1606 Refactor the Logger/Model/Logger class
  * PPP-1625 Updated phpunit.xml and fixed warnings in the unit tests
  * PPP-1632 Added timestamps to the database table.

3.0.1 / 2024-07-26
==================

  * PPP-1553 Make the extension compatible with Adobe Commerce app assurance program requirements

3.0.0 / 2024-06-20
==================

  * PPP-1437 Updated the admin UX and changed internally the API credentials handling

2.0.10 / 2024-05-30
==================

  * PPP-923 Add Klarna logger resource to the Klarna role

2.0.9 / 2024-04-24
==================

  * PPP-1391 Added support for Adobe Commerce 2.4.7 and PHP 8.3

2.0.8 / 2024-03-30
==================

  * PPP-1013 Using instead of \Klarna\Base\Helper\ConfigHelper logic from other classes to get back Klarna specific configuration values.
  * PPP-1330 Make Logger module routes.xml file valid

2.0.7 / 2024-03-04
==================

  * PPP-596 Logging entries can now be filtered by the KP authorization callback and the status codes 400, 403 and 503
  * PPP-916 Retrieve and add more debugging related data to the admin support request form.

2.0.5 / 2024-01-19
==================

  * PPP-917 Added integration tests for the repository

2.0.4 / 2023-11-15
==================

  * PPP-802 Fix setRequest exception

2.0.3 / 2023-07-14
==================

  * MAGE-4228 Removed the composer caret version range for Klarna dependencies

2.0.2 / 2023-05-22
==================

  * MAGE-3857 Added a default value for the response_code

2.0.1 / 2023-03-28
==================

  * MAGE-4162 Added support for PHP 8.2

2.0.0 / 2023-03-09
==================

  * MAGE-4062 Removed deprecated methods
  * MAGE-4063 Removd deprecated classes
  * MAGE-4066 Removed the Objectmanager workaround for public API class contructors
  * MAGE-4068 Do not using anymore in all controllers the parent Magento\Framework\App\Action\Action class
  * MAGE-4077 Added "declare(strict_types=1);" to all production class files

1.0.8 / 2022-09-27
==================

  * MAGE-4006 Using the PHP method array_walk_recursive for cleaning the logging entries in a production environment

1.0.7 / 2022-09-01
==================

  * MAGE-3018 Added dropdown values for filter on the admin logger page
  * MAGE-3572 Added better descriptions of the admin payment fields.
  * MAGE-3712 Using constancts instead of magic numbers

1.0.6 / 2022-08-18
==================

  * MAGE-3950 Added missing translations

1.0.5 / 2022-08-12
==================

  * MAGE-3575 Add log link to order
  * MAGE-3876 Reordered translations and set of missing translations
  * MAGE-3910 Updated the copyright text

1.0.4 / 2022-07-11
==================

  * MAGE-3888 Removed object creations via "new ..."

1.0.3 / 2022-06-23
==================

_(Changelog truncated for .md surface. Full history on https://packagento.com/vaimo/kustom-module-logger.)_

## Recent Versions

| Version | Released |
|---|---|
| 3.0.9 | 2025-09-11 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-json | * |
| magento/framework | ^103 |
| monolog/monolog | ^2.3 \|\| ^3.9.0 |
| php | ~7.4.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0 |
| psr/log | ^1.0\|\|^3.0 |

## Quality

Latest release (3.0.9) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 1 | 1 | – | – |
| 2.4.8 | – | 1 | 1 | – |
| 2.4.9 | – | – | 1 | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 29 | 29 warnings (ruleset: Magento2) — 13 auto-fixable with phpcbf |
| PHPMD | Warning | 11 | 11 rule violations (UndefinedVariable:6, MissingImport:3, TooManyPublicMethods:2) |
| Cpd | Warning | 2 | 2 duplicated chunks spanning 33 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 42 | 42 | – | – |
| 2.4.8 | – | 40 | 40 | – |
| 2.4.9 | – | – | 40 | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | not tested |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["vaimo/kustom-module-logger"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

Vaimo is a Magento 2 vendor on Packagento. See https://packagento.com/vaimo.md for their full catalogue.

