$logViewer $logViewer : \Arcanedev\LogViewer\Contracts\LogViewer The log viewer instance Type \Arcanedev\LogViewer\Contracts\LogViewer
__construct() __construct(\Arcanedev\LogViewer\Contracts\LogViewer $logViewer) LogViewerController constructor. Parameters \Arcanedev\LogViewer\Contracts\LogViewer $logViewer
listLogs() listLogs(\Illuminate\Http\Request $request) : \Illuminate\View\View List all logs. Parameters \Illuminate\Http\Request $request Returns \Illuminate\View\View
show() show(string $date) : \Illuminate\View\View Show the log. Parameters string $date Returns \Illuminate\View\View
showByLevel() showByLevel(string $date, string $level) : \Illuminate\View\View|\Illuminate\Http\RedirectResponse Filter the log entries by level. Parameters string $date string $level Returns \Illuminate\View\View|\Illuminate\Http\RedirectResponse
download() download(string $date) : \Symfony\Component\HttpFoundation\BinaryFileResponse Download the log Parameters string $date Returns \Symfony\Component\HttpFoundation\BinaryFileResponse
delete() delete(\Illuminate\Http\Request $request) : \Illuminate\Http\JsonResponse Delete a log. Parameters \Illuminate\Http\Request $request Returns \Illuminate\Http\JsonResponse
view() view(string $view, array $data = array(), array $mergeData = array()) : \Illuminate\View\View Get the evaluated view contents for the given view. Parameters string $view array $data array $mergeData Returns \Illuminate\View\View
paginate() paginate(array $data, \Illuminate\Http\Request $request) : \Illuminate\Pagination\LengthAwarePaginator Paginate logs. Parameters array $data \Illuminate\Http\Request $request Returns \Illuminate\Pagination\LengthAwarePaginator
getLogOrFail() getLogOrFail(string $date) : \Arcanedev\LogViewer\Entities\Log|null Get a log or fail Parameters string $date Returns \Arcanedev\LogViewer\Entities\Log|null
prepareChartData() prepareChartData(\Arcanedev\LogViewer\Tables\StatsTable $stats) : string Prepare chart data. 修改数据结构 Parameters \Arcanedev\LogViewer\Tables\StatsTable $stats Returns string
calcPercentages() calcPercentages(array $total, array $names) : array Calculate the percentage. Parameters array $total array $names Returns array