fmihel/console-log

error,log,console,php,javascript,js,error_log,console.log,console.info

v1.8.0 2024-10-24 13:10 UTC

README

Class out to error_log like as console.info from js

Install

composer require fmihel/console-log

Use

<?php
require_once __DIR__.'/vendor/autoload.php';
use fmihel\console;

console::log('Can out array',[1,2,3,4]);

try{
    
    throw new \Exception('generate error');

}catch(\Exception $e){
    console::error($e);
};

>

Api

Config

For config use method console::params([...]) with next params: |