New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jooservices/laravel-logging

MongoDB-backed structured application logging for Laravel.
2,463

Larablocks Analysis

jooservices/laravel-logging works with Laravel 12 and 13 (latest release v4.0.0, Sep 6, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Sep 6, 2026)
  • 626 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Sep 6, 2026.
  • 5 releases in the last 12 months.
  • First released: May 12, 2026.
  • Monthly downloads: 626.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require jooservices/laravel-logging
Latest Version:v4.0.0
PHP:^8.5
Laravel:12 · 13
License:MIT
Last Updated:Nov 30, 2026
Links: GitHub  ·  Packagist
Maintainer: jooservices

jooservices/laravel-logging

CI Coverage (develop) OpenSSF Scorecard PHP Version GitHub Release Packagist Version Total Downloads License: MIT

jooservices/laravel-logging stores structured activity, audit, security, domain, and system logs in MongoDB for Laravel applications.

v4.0.0 requires jooservices/dto ^3 and jooservices/laravel-repository ^4. See UPGRADE.md and the changelog.

Features

  • Structured records through activity, audit, security, domain, and system adapters.
  • MongoDB persistence, indexes, and query helpers.
  • Optional queue dispatch, model audit logging, retention, and JSONL/CSV export.

Requirements

  • PHP ^8.5
  • Laravel 12 or 13
  • mongodb/laravel-mongodb ^5.7 and a configured MongoDB connection
  • jooservices/dto ^3 and jooservices/laravel-repository ^4

Installation

composer require jooservices/laravel-logging
php artisan vendor:publish --tag=laravel-logging-config
php artisan activity-log:indexes

Set the MongoDB connection and package collection in your environment as needed:

ACTIVITY_LOG_CONNECTION=mongodb
ACTIVITY_LOG_COLLECTION=activity_logs
MONGODB_URI=mongodb://localhost:27017

Check that the package can resolve its runtime configuration before using the adapter:

php artisan activity-log:doctor

Quick start

use JOOservices\LaravelLogging\Facades\ActivityLog;

ActivityLog::system()
    ->commandStarted('scheduler:run')
    ->save();

save() persists synchronously and returns an ActivityLogRecord. See Queueing for dispatching work to a queue.

Design notes

  • This package stores structured application records; it is not a replacement for Laravel Log, Monolog, Sentry, OpenTelemetry, Loki, ELK, or a full observability stack.
  • Model audit logging is opt-in through the LogsActivity trait.
  • For admin timelines or compliance event streams, see the ecosystem decision tree.

Documentation

Development

The Makefile runs the package's Docker Compose toolchain:

make build
make install
make lint-all
make test
make ci

Integration tests use MongoDB. See testing and linting and the contributing guide for setup and quality checks.

Community

License

MIT — see LICENSE.

Alternatives to jooservices/laravel-logging

danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB d...

1,138,529 133
alizharb/filament-activity-log

A security-first audit control center for Filament v4 and v5 with tenant isolati...

205,062 33
mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament a...

68,368 26
muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analyt...

44,755 197
hosmelq/laravel-audit-logs

Structured audit logs for Laravel with actors, targets, and request metadata.

23,242 1

Version History

Version Released PHP Laravel License
v4.0.0 ^8.5 ^12.0|^13.0 MIT
v1.3.0 ^8.5 ^12.0|^13.0 MIT
v1.2.0 ^8.5 ^12.0|^13.0 MIT
v1.1.0 ^8.5 ^12.0|^13.0 MIT
v1.0.0 ^8.5 ^12.0 MIT