Download the PHP package onamfc/laravel-devlogger without Composer

On this page you can find all versions of the php package onamfc/laravel-devlogger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-devlogger

A comprehensive logging package for Laravel that stores logs in a database with automatic error catching, advanced filtering, and management capabilities.

Features

Installation

1. Install via Composer

2. Publish Configuration and Migrations

3. Run Migrations

4. Configure Environment Variables (Optional)

Add these to your .env file to customize behavior:

Basic Usage

Manual Logging

Exception Logging

Automatic Exception Catching - Laravel 9, 10, 11

The package automatically catches and logs all unhandled exceptions when DEVLOGGER_AUTO_CATCH=true (default). To set this up:

Option 1: Extend the DevLogger Exception Handler

In your app/Exceptions/Handler.php:

Option 2: Manual Integration

If you prefer to keep your existing handler, add this to your report method:

Automatic Exception Catching - Laravel 12

Integration

The bootstrap directory contains the app.php file which bootstraps the framework: bootstrap/app.php. Within the withException method, you can integrate the DevLogger package to automatically catch exceptions:

Advanced Usage

Working with Log Models

Log Cleanup

The package includes automatic cleanup based on your retention policy:

Automatic cleanup runs daily when DEVLOGGER_RETENTION_DAYS is configured.

Database Schema

The developer_logs table includes these fields:

Field Type Description
id bigint Primary key
level string Log level (debug, info, error, etc.)
log longtext The log message
context json Additional context data
file_path string File where log originated
line_number integer Line number where log originated
exception_class string Exception class name (for exceptions)
stack_trace longtext Full stack trace (for exceptions)
queue string Associated queue name
request_url string HTTP request URL
request_method string HTTP request method
user_id bigint ID of authenticated user
ip_address string Client IP address
user_agent text Client user agent
status string Log status (open/closed)
tags json Array of tags
updated_by bigint User who last updated the log
created_at timestamp When log was created
updated_at timestamp When log was last updated
deleted_at timestamp Soft delete timestamp

Configuration Options

The config/devlogger.php file provides extensive configuration:

Performance Considerations

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

Support

If you encounter any issues or have questions, please open an issue on the GitHub repository.


All versions of laravel-devlogger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onamfc/laravel-devlogger contains the following files

Loading the files please wait ...