Laravel - Logging - Writing To Specific Channels

Sometimes you may wish to log a message to a channel other than your application's default channel. You may use the channel method on the Log facade to retrieve and log to any channel defined in your configuration file:

    
    use Illuminate\Support\Facades\Log;
    
    Log::channel('slack')->info('Something happened!');
	

If you would like to create an on-demand logging stack consisting of multiple channels, you may use the stack method:

    
    Log::stack(['single', 'slack'])->info('Something happened!');