diff --git a/src/Http/Controllers/LogViewerController.php b/src/Http/Controllers/LogViewerController.php index 6b2203e1..afcf9684 100644 --- a/src/Http/Controllers/LogViewerController.php +++ b/src/Http/Controllers/LogViewerController.php @@ -154,7 +154,12 @@ public function search(Request $request, $date, $level = 'all') $entries = $log->entries($level) ->unless(empty($needles), function (LogEntryCollection $entries) use ($needles) { return $entries->filter(function (LogEntry $entry) use ($needles) { - return Str::containsAll(Str::lower($entry->header), $needles); + foreach ([$entry->header, $entry->stack, $entry->context()] as $subject) { + if (Str::containsAll(Str::lower($subject), $needles)) + return true; + } + + return false; }); }) ->paginate($this->perPage);