juanber84 / ladybug-plugin-monolog
Monolog plugin for ladybug
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:ladybug-plugin
Requires
- monolog/monolog: 1.10.0
- raulfraile/ladybug: dev-master
- raulfraile/ladybug-installer: ~1.0.0
Requires (Dev)
- mockery/mockery: 0.8.0
- raulfraile/ladybug: ~1.0.0
- symfony/http-foundation: *
This package is not auto-updated.
Last update: 2024-11-05 07:23:31 UTC
README
Monolog helper for ladybug:
<?php $var = array( array( 'name' => 'Raul', 'age' => 29 ), array( 'name' => 'John', 'age' => 27 ) ); ladybug_logger_dump($var);
Output in your log (logs/ladybug.log is the path of default output):
[2014-09-01 21:09:49] LADYBUG: array(2)
[0]: array(2)
[name]: string (4) "Raul"
[age]: int 29
[1]: array(2)
[name]: string (4) "John"
[age]: int 27
/Users/juanber/Desktop/lady/index.php:18
If you can write the output in other file, try this:
<?php ladybug_logger_set_path( /** your path **/ ); ladybug_logger_dump($var);
Install with composer:
{
"require": {
"raulfraile/ladybug": "dev-master",
"juanber84/ladybug-plugin-monolog": "dev-master"
}
}