Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How do I log properly a Laravel Job

'job' =>  [
            'driver' => 'single',
            'path' => storage_path('logs/job.log'),
            'level' => 'info',
        ],
Then use it anywhere with

Log::channel('job')->info($content);
//or
Log::channel('job')->error($content);
 
PREVIOUS NEXT
Tagged: #How #I #log #properly #Laravel #Job
ADD COMMENT
Topic
Name
6+7 =