Download the PHP package alen-dev/xpath-log without Composer
On this page you can find all versions of the php package alen-dev/xpath-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alen-dev/xpath-log
More information about alen-dev/xpath-log
Files in alen-dev/xpath-log
Package xpath-log
Short Description Simple Laravel Logger
License MIT
Homepage https://github.com/alen-dev/xpath-log
Informations about the package xpath-log
XpathLog ๐
A simple and extensible Laravel logging package for structured logging, transactions, and multiple output drivers โ all with zero code changes when switching drivers.
๐ Features
- ๐ง Multiple log levels (
debug,info,warning,error) - ๐ท Tagged log entries with custom attributes
- ๐ Supports multiple drivers:
- CLI (console output)
- JSON file logging (rotated daily)
- Simple text log file
- ๐ Transaction-based logging with start/end timestamps
- ๐ Log viewer Artisan command with filters
- โ Easily add custom drivers without modifying the core
- ๐ฆ Laravel-ready with automatic service provider & facade
๐ฆ Installation
๐ Setup
Step 1: Publish the config
This is the contents of the published config file:
Step 2: Optional ENV config
๐งช Usage
Basic Logging
Transaction Logging
Or log custom transaction messages:
๐ฅ Artisan Log Viewer
Optional: you can add some sample data for Artisan Log Viewer. The log viewer is designed to view JSON log created by this package.
View the most recent XpathLog entries from your JSON log file (other file formats coming soon)
Filter logs
๐งฉ Custom Drivers
You can register custom drivers externally via config:
Each driver must implement:
๐งฉ Request Logger
This feature is disabled by default. To enable just add the following variable to your .env file:
If enabled, by default, this will log every request on your web middleware but you can change this by adding the following line to your .env file:
๐งช Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of xpath-log with dependencies
spatie/laravel-package-tools Version ^1.16
laravel/framework Version ^11.0 || ^12.9.2