getHandlers() as $handler) { $handler->setFormatter(new LineFormatter(null, null, true, true)); $handler->pushProcessor(function ($record) { $record['extra']['ip'] = request()->ip(); return $record; }); } } }