clodeindustrie / silverstripe-consoler
Debug to your browser console
Package info
github.com/clodeindustrie/silverstripe-consoler
Type:silverstripe-vendormodule
pkg:composer/clodeindustrie/silverstripe-consoler
v1.0.2
2026-03-31 23:50 UTC
Requires
- silverstripe/framework: ^4.0 || ^5.0 || ^6.0
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());
