mardi 15 novembre 2016

laravel log::info log nothing

i have a simple script and i want to print it out at log, i use log::info

        $tags_array = $request->tags;

        foreach ($tags_array as $tag_array) {
            $tags .= $tag_array['g1tags'].'---';
            $tags_desc .= $tag_array['tags_g1desc'].'---';
            //Log::info(tag_array['g1tags']);
            $tag_ids[][$tag_array['g1tags']] =  array('description' => $tag_array['tags_g1desc'], 'gid' => 1);
        }

        Log::info('Showing user profile for user: '.print_r($tag_ids, true));   

but it does not print anything in log file, if i use

Log::info($request->tags); it print out the array, but i need to see $tag_ids, anyone know what is the problem?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire