fmihel/console-log

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

v1.6.2 2024-07-11 06:59 UTC

This package is auto-updated.

Last update: 2024-07-11 07:00:39 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: |