clodeindustrie/silverstripe-consoler

Debug to your browser console

Maintainers

Package info

github.com/clodeindustrie/silverstripe-consoler

Type:silverstripe-vendormodule

pkg:composer/clodeindustrie/silverstripe-consoler

Statistics

Installs: 1 467

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-03-31 23:50 UTC

This package is auto-updated.

Last update: 2026-04-04 00:12:41 UTC


README

Print debug statements from your backend to your browser console.

Installation

composer require --dev silverstripe-consoler

NB: By default, it is configured to be enabled only in dev environment. Along with installing it as a required-dev package, this should avoid accidentally leaking data in a production environment.

Documentation

The package is namespaced clodeindustrie/silverstripe-consoler however, the class is namespaced clie/Consoler that way it is bit easier to user directly in any class without having to use ... it at the top the file.

// Print strings
\Clie\Consoler::log('This is a debugging statement');

// Print Arrays
\Clie\Consoler::log([ "my-key" => "my-value"]);

// Print DataObjects
\Clie\Consoler::log(Member::get()->first());

screenshot