info($output, $context); } $output = null; $context = null; } function nrlog($output, $context = []): void { if (! config('ninja.expanded_logging')) { return; } if (gettype($output) == 'object') { $output = print_r($output, 1); } // $trace = debug_backtrace(); if (Ninja::isHosted()) { try { info($output); } catch (\Exception $e) { } } else { \Illuminate\Support\Facades\Log::channel('invoiceninja-reminders')->info($output, $context); } $output = null; $context = null; }