Nitik is a robust error tracking package for Laravel and Filament. It aggregates unique errors into a database and provides a sleek dashboard to manage them.
- Unique Error Aggregation: Combines similar errors into a single record with a count of occurrences.
- Smart Stack Trace: Captures and filters stack traces for better readability, skipping internal baggage.
- Filament Integration: Comes with a ready-to-use Filament resource to monitor and manage errors.
- Infinite Loop Protection: Prevents recursive logging loops if the database or driver fails.
- PHP:
^8.1 - Laravel:
^10.0 | ^11.0 | ^12.0 - Filament:
^4.0 | ^5.0
composer require kholil/nitik
php artisan migratephp artisan vendor:publish --tag=nitikAdd the nitik channel to your config/logging.php:
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'nitik'],
'ignore_exceptions' => false,
],
'nitik' => [
'driver' => 'nitik',
'level' => 'debug',
],
// ...
],Add the NitikPlugin to your Filament Panel Provider:
use Kholil\Nitik\NitikPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
NitikPlugin::make(),
]);
}Clean up your error records periodically using these commands:
Hapus semua error yang sudah ditandai sebagai 'Resolved'.
php artisan nitik:clear-resolvedHapus error lama berdasarkan jumlah hari (default: 30 hari).
php artisan nitik:prune --days=30Edit config/nitik.php to customize behavior:
log_levels: Array of levels (e.g.,error,critical) to capture.ignore_exceptions: List of exception classes to skip (e.g.,NotFoundHttpException).navigation_group: Label for Filament navigation grouping (default:null).
The MIT License (MIT). Please see License File for more information.
