Download the PHP package tfo/advanced-log without Composer
On this page you can find all versions of the php package tfo/advanced-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tfo/advanced-log
More information about tfo/advanced-log
Files in tfo/advanced-log
Package advanced-log
Short Description Advanced logging system for Laravel with Slack, Sentry and DataDog integration
License MIT
Informations about the package advanced-log
README.md
Advanced Logger for Laravel
Leia em PortuguΓͺs
Advanced logging system for Laravel applications with integrated support for Slack, Sentry, and DataDog (Soon).
Features
- π Simple and intuitive API
- π± Real-time Slack notifications
- π Sentry error tracking integration
- π DataDog metrics support
- π¨ Customizable message formatting
- β‘ Multiple notification channels
- π Secure credentials handling
- π Simplified configuration
Log Destinations
Logs are sent to:
- Local file (storage/logs/laravel.log)
- Slack (via webhook)
- Sentry (if configured)
- DataDog (if configured) SOON
Requirements
- PHP ^8.1
- Laravel ^10.0|^11.0
Installation
You can install the package via composer:
Configuration
- Publish the configuration file:
The installer will:
Publish configurations Copy loggers to app/Loggers Install ServiceProvider Add .env variables Publish test routes
- Add these variables to your
.env
file:
Usage
Log Types and Usage
Test Log Levels Standard Laravel log levels. Use to test basic logging functionality.
Performance Log Monitor execution times and bottlenecks. Use for:
- Long-running processes
- Database queries
- API calls
- Critical user flows
Audit Log Track data changes. Use for:
- User modifications
- Permission changes
- Critical record updates
- Configuration changes
Security Log Monitor security events. Use for:
- Login attempts
- Permission changes
- Suspicious activities
- Access violations
API Log Track API interactions. Use for:
- External service calls
- Endpoint monitoring
- Integration debugging
- API performance
Database Log Monitor database operations. Use for:
- Critical data changes
- Schema updates
- Bulk operations
- Data integrity checks
Job Log Track background tasks. Use for:
- Queue processing
- Scheduled tasks
- Long-running jobs
- Failed job analysis
Cache Log Monitor cache operations. Use for:
- Cache hits/misses
- Cache invalidation
- Memory usage
- Performance optimization
Request Log Track HTTP requests. Use for:
- Important endpoints
- User interactions
- Error tracking
- Performance monitoring
Payment Log Monitor financial transactions. Use for:
- Payment processing
- Refunds
- Subscription changes
- Payment errors
Notification Log Track communication events. Use for:
- Email sending
- SMS delivery
- Push notifications
- Communication errors
File Log Monitor file operations. Use for:
- File uploads
- Downloads
- Storage operations
- File processing
Auth Log Track authentication events. Use for:
- Login/logout
- Password resets
- 2FA events
- Session management
Export Log Monitor data exports. Use for:
- Report generation
- Bulk downloads
- Data migrations
- Export errors
Basic Logging
Advanced Logging
Performance Logging
Audit Logging
Security Logging
API Logging
Database Logging
Job Logging
Cache Logging
Request Logging
Payment Logging
Notification Logging
File Logging
Auth Logging
Export Logging
Channels
Slack
Messages are sent to Slack with:
- Emojis indicating log level
- Color-coded messages
- Structured context fields
- Custom channel support
Sentry
Errors are tracked in Sentry with:
- Full stack traces
- Environment information
- User context
- Custom tags and breadcrumbs
DataDog
Metrics are sent to DataDog with:
- Custom metrics
- Tagging
- Event aggregation
- Performance tracking
Testing
Changelog
See CHANGELOG.md for more information about recent changes.
Contributing
See CONTRIBUTING.md for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Thalles Freitas
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of advanced-log with dependencies
laravel/framework Version ^10.0|^11.0
laravel/slack-notification-channel Version ^3.0
sentry/sentry-laravel Version ^3.0|^4.0
datadog/dd-trace Version ^0.75.0