
Observability & Monitoring
Structured logging, log channels, Monolog, correlation IDs, Sentry/Bugsnag, metrics, tracing, health checks, queue monitoring, Horizon
1What is structured logging in Laravel?
What is structured logging in Laravel?
Antwoord
Structured logging consists of logging data in a structured format (JSON, arrays) rather than plain text. This facilitates searching, filtering and analyzing logs with tools like Elasticsearch or Datadog. Laravel uses Monolog which natively supports structured logging through contexts and processors.
2What is the main role of log channels in Laravel?
What is the main role of log channels in Laravel?
Antwoord
Log channels allow routing logs to different destinations (files, Slack, Sentry) depending on context. Configured in config/logging.php, they enable sending critical errors to Slack while keeping INFO logs in local files. This offers maximum flexibility for multi-destination observability.
3Which Laravel component uses Monolog internally?
Which Laravel component uses Monolog internally?
Antwoord
Laravel uses Monolog as the underlying logging engine through the Log facade and LogManager service. Monolog is a standard PHP library providing handlers (files, Slack, Sentry), formatters (JSON, line) and processors (context addition). Laravel wraps it to offer a simple and expressive API.
Which log level should be used to trace a normal user action without error?
When should a custom log channel be created in Laravel?
+17 gespreksvragen
Andere Laravel-sollicitatieonderwerpen
PHP Basics
PHP OOP Essentials
Composer & Autoloading
Laravel Fundamentals
Laravel Routing
Blade Templates
Request & Response
Eloquent ORM Basics
Eloquent Relationships
Migrations & Schema Builder
Validation & Forms
Authentication
Authorization & Policies
API Resources & Authentication
Middleware
Service Container & DI
Queues & Jobs
Events & Listeners
Notifications & Mail
File Storage
Testing & PHPUnit
Caching
Livewire & Inertia
Eloquent Advanced
Repository Pattern
Laravel Packages
Performance Optimization
Security Best Practices
Laravel Octane
Laravel Distributed Systems
Deployment & DevOps
Beheers Laravel voor je volgende gesprek
Krijg toegang tot alle vragen, flashcards, technische tests, code review-oefeningen en gespreksimulatoren.
Begin gratis